summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/pipeline/expression/lexer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/ci/pipeline/expression/lexer.rb')
-rw-r--r--lib/gitlab/ci/pipeline/expression/lexer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/ci/pipeline/expression/lexer.rb b/lib/gitlab/ci/pipeline/expression/lexer.rb
index f26542361a2..38c2a11d5dd 100644
--- a/lib/gitlab/ci/pipeline/expression/lexer.rb
+++ b/lib/gitlab/ci/pipeline/expression/lexer.rb
@@ -50,11 +50,11 @@ module Gitlab
end
unless lexeme.present?
- raise Lexer::SyntaxError, 'Unknown lexeme found!'
+ raise Lexer::SyntaxError, _('Unknown lexeme found!')
end
end
- raise Lexer::SyntaxError, 'Too many tokens!'
+ raise Lexer::SyntaxError, _('Too many tokens!')
end
end
end