From d8806cd86ede1d4e9116642b95402fc19825a6e1 Mon Sep 17 00:00:00 2001 From: Joseph Humfrey Date: Wed, 15 Aug 2018 09:57:58 +0200 Subject: [PATCH] Clearer error for missing variables [from HV repo] --- ink-engine-runtime/VariablesState.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ink-engine-runtime/VariablesState.cs b/ink-engine-runtime/VariablesState.cs index d9f95696..ac86de3d 100644 --- a/ink-engine-runtime/VariablesState.cs +++ b/ink-engine-runtime/VariablesState.cs @@ -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) {