Skip to content

Commit

Permalink
Fix the warning message for unsuccessful termination (#1598)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgillum authored Dec 9, 2020
1 parent 572b955 commit 821b862
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ async Task IDurableOrchestrationClient.TerminateAsync(string instanceId, string
hubName: this.TaskHubName,
functionName: state.Name,
instanceId: instanceId,
message: $"Cannot terminate orchestration instance in {state.Status} state");
throw new InvalidOperationException($"Cannot terminate the orchestration instance {instanceId} because instance is in {state.Status} state");
message: $"Cannot terminate orchestration instance in the {state.OrchestrationStatus} state.");
throw new InvalidOperationException($"Cannot terminate the orchestration instance {instanceId} because instance is in the {state.OrchestrationStatus} state.");
}
}

Expand Down

0 comments on commit 821b862

Please sign in to comment.