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

Commit d935cb7

Browse files
committed
fix: clarify variables error
1 parent 444f342 commit d935cb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/query-tree/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class Query {
104104
variableValue = variableData[variableName];
105105
} else {
106106
if (variableDefaultValue === undefined) {
107-
throw new Error('Variable ' + variableName + ' used but not defined.');
107+
throw new Error('Variable "' + variableName + '" used in query body, but it was not defined in the given variables object.');
108108
}
109109
variableValue = variableDefaultValue;
110110
}

0 commit comments

Comments
 (0)