summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2018-05-24 15:06:58 -0500
committerMayra Cabrera <mcabrera@gitlab.com>2018-05-24 15:14:28 -0500
commit0bc9e0b4feb746f1b9fe233bfbb6e9afd70e0b98 (patch)
treeb90da44160f55716df9574000ed944a91935f40f /app
parentba58a66a55e2270eb46f7429e070d16f77d25b9d (diff)
downloadgitlab-ce-0bc9e0b4feb746f1b9fe233bfbb6e9afd70e0b98.tar.gz
Removes redundant error message for script failures
Script failure message was redundant so it was removed. Also 'check your job log' message was removed from all the error messages. Closes #44271
Diffstat (limited to 'app')
-rw-r--r--app/presenters/commit_status_presenter.rb3
-rw-r--r--app/serializers/job_entity.rb2
2 files changed, 2 insertions, 3 deletions
diff --git a/app/presenters/commit_status_presenter.rb b/app/presenters/commit_status_presenter.rb
index c7f7aa836bd..9a7aaf4ef32 100644
--- a/app/presenters/commit_status_presenter.rb
+++ b/app/presenters/commit_status_presenter.rb
@@ -1,11 +1,10 @@
class CommitStatusPresenter < Gitlab::View::Presenter::Delegated
CALLOUT_FAILURE_MESSAGES = {
unknown_failure: 'There is an unknown failure, please try again',
- script_failure: 'There has been a script failure. Check the job log for more information',
api_failure: 'There has been an API failure, please try again',
stuck_or_timeout_failure: 'There has been a timeout failure or the job got stuck. Check your timeout limits or try again',
runner_system_failure: 'There has been a runner system failure, please try again',
- missing_dependency_failure: 'There has been a missing dependency failure, check the job log for more information'
+ missing_dependency_failure: 'There has been a missing dependency failure'
}.freeze
presents :build
diff --git a/app/serializers/job_entity.rb b/app/serializers/job_entity.rb
index 3076fed1674..30f0bda9418 100644
--- a/app/serializers/job_entity.rb
+++ b/app/serializers/job_entity.rb
@@ -54,7 +54,7 @@ class JobEntity < Grape::Entity
end
def failed?
- build.failed?
+ build.failed? && !build.script_failure?
end
def callout_message