From d935cb73830f8ff9567c2d0f0d8f5071fe33d8e7 Mon Sep 17 00:00:00 2001 From: Christian Stewart Date: Mon, 10 Apr 2017 20:12:50 -0400 Subject: [PATCH] fix: clarify variables error --- src/query-tree/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query-tree/query.ts b/src/query-tree/query.ts index c88b0a0..02b7b3e 100644 --- a/src/query-tree/query.ts +++ b/src/query-tree/query.ts @@ -104,7 +104,7 @@ export class Query { variableValue = variableData[variableName]; } else { if (variableDefaultValue === undefined) { - throw new Error('Variable ' + variableName + ' used but not defined.'); + throw new Error('Variable "' + variableName + '" used in query body, but it was not defined in the given variables object.'); } variableValue = variableDefaultValue; }