diff --git a/app/imports/api/properties/Constants.js b/app/imports/api/properties/Constants.js index fc38e0ff..d3e8e20a 100644 --- a/app/imports/api/properties/Constants.js +++ b/app/imports/api/properties/Constants.js @@ -46,7 +46,7 @@ let ConstantSchema = new SimpleSchema({ // Ban variables in constants if necessary result && result.traverse(node => { if (node instanceof SymbolNode || node instanceof AccessorNode){ - context.storeError()({ + context.storeError({ type: 'error', message: 'Variables can\'t be used to define a constant' });