Skip to content

Commit

Permalink
RavenDB-22849 - minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lastav5 committed Feb 20, 2025
1 parent dc1cac0 commit 2c9933e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Raven.Server/Web/System/BackupDatabaseHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public async Task GetPeriodicBackupStatus()
var taskId = GetLongQueryString("taskId", required: true);

if (StatusType.TryParse(type, ignoreCase: true, out StatusType statusType) == false)
throw new ArgumentException($"provided '{type}' has to be `{StatusType.Cluster.ToString()}` or '{StatusType.Local.ToString()}'");
throw new ArgumentException($"provided '{nameof(type)}' has to be `{StatusType.Cluster.ToString()}` or '{StatusType.Local.ToString()}'");

using (ServerStore.ContextPool.AllocateOperationContext(out TransactionOperationContext context))
using (context.OpenReadTransaction())
Expand Down

0 comments on commit 2c9933e

Please sign in to comment.