Skip to content

Commit

Permalink
Clearer error for missing variables [from HV repo]
Browse files Browse the repository at this point in the history
  • Loading branch information
joethephish committed Aug 15, 2018
1 parent a17baa6 commit d8806cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ink-engine-runtime/VariablesState.cs
Expand Up @@ -75,7 +75,7 @@ internal bool batchObservingVariableChanges
}
set {
if (!_defaultGlobalVariables.ContainsKey (variableName))
throw new StoryException ("Cannot assign to a variable that hasn't been declared in the story");
throw new StoryException ("Cannot assign to a variable ("+variableName+") that hasn't been declared in the story");

var val = Runtime.Value.Create(value);
if (val == null) {
Expand Down

0 comments on commit d8806cd

Please sign in to comment.