From 65910db99106c92a64dbd899525acb76ebe0581e Mon Sep 17 00:00:00 2001 From: Daniel Lee Date: Mon, 20 Mar 2017 17:14:24 +0100 Subject: [PATCH] template: tweak to warning message --- public/app/features/templating/editor_ctrl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/templating/editor_ctrl.ts b/public/app/features/templating/editor_ctrl.ts index 002afa4264b..7d0a0a5465a 100644 --- a/public/app/features/templating/editor_ctrl.ts +++ b/public/app/features/templating/editor_ctrl.ts @@ -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; }