Update src/modules/Elsa.Workflows.Core/Activities/SetVariable.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
abfaad85cb
commit
c02484fd4d
|
|
@ -105,7 +105,7 @@ public class SetVariable : CodeActivity
|
|||
var variable = context.ExpressionExecutionContext.EnumerateVariablesInScope().FirstOrDefault(x => x.Id == variableId);
|
||||
|
||||
if (variable == null)
|
||||
throw new($"Variable '{variableId}' not found.");
|
||||
throw new InvalidOperationException($"Variable '{variableId}' not found.");
|
||||
|
||||
var value = context.Get(Value);
|
||||
variable.Set(context, value);
|
||||
|
|
|
|||
Loading…
Reference in a new issue