Skip to content

Commit d8806cd

Browse files
committed
Clearer error for missing variables [from HV repo]
1 parent a17baa6 commit d8806cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ink-engine-runtime/VariablesState.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public object this[string variableName]
7575
}
7676
set {
7777
if (!_defaultGlobalVariables.ContainsKey (variableName))
78-
throw new StoryException ("Cannot assign to a variable that hasn't been declared in the story");
78+
throw new StoryException ("Cannot assign to a variable ("+variableName+") that hasn't been declared in the story");
7979

8080
var val = Runtime.Value.Create(value);
8181
if (val == null) {

0 commit comments

Comments
 (0)