Commit 65910db9 by Daniel Lee

template: tweak to warning message

parent c1c24169
......@@ -78,7 +78,7 @@ export class VariableEditorCtrl {
}
if ($scope.current.type === 'query' && $scope.current.query.match(new RegExp('\\$' + $scope.current.name))) {
$scope.appEvent('alert-warning', ['Validation', 'Query contains variable self-reference']);
$scope.appEvent('alert-warning', ['Validation', 'Query cannot contain a reference to itself. Variable: $' + $scope.current.name]);
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment