Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
fix: clarify variables error
Browse files Browse the repository at this point in the history
  • Loading branch information
paralin committed Apr 11, 2017
1 parent 444f342 commit d935cb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query-tree/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d935cb7

Please sign in to comment.