summaryrefslogtreecommitdiff
path: root/app/controllers/lints_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/lints_controller.rb')
-rw-r--r--app/controllers/lints_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/lints_controller.rb b/app/controllers/lints_controller.rb
index d1b42f6..33ee206 100644
--- a/app/controllers/lints_controller.rb
+++ b/app/controllers/lints_controller.rb
@@ -7,12 +7,12 @@ class LintsController < ApplicationController
def create
if params[:content].blank?
@status = false
- @error = "Please provide content of your file"
+ @error = "Please provide content of .gitlab-ci.yml"
else
@config_processor = GitlabCiYamlProcessor.new params[:content]
@status = true
end
- rescue Psych::SyntaxError => e
+ rescue GitlabCiYamlProcessor::ValidationError => e
@error = e.message
@status = false
rescue Exception => e