diff options
author | Shinya Maeda <shinya@gitlab.com> | 2019-06-26 19:29:35 +0700 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2019-07-04 09:53:40 +0700 |
commit | 93be669e16b71a00362187a690e573209d80d960 (patch) | |
tree | 6fc866212596ae5a2fbde9b917ea944363b7f8fa /app/services/ci/create_pipeline_service.rb | |
parent | 19dc1105524e3d25821670706a750043775588fa (diff) | |
download | gitlab-ce-93be669e16b71a00362187a690e573209d80d960.tar.gz |
Refactor pipeline errors_messagerefactor-pipeline-errors_message-ce
Use the shared method in Ci::Pipeline
Diffstat (limited to 'app/services/ci/create_pipeline_service.rb')
-rw-r--r-- | app/services/ci/create_pipeline_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/create_pipeline_service.rb b/app/services/ci/create_pipeline_service.rb index c17712355af..cdcc4b15bea 100644 --- a/app/services/ci/create_pipeline_service.rb +++ b/app/services/ci/create_pipeline_service.rb @@ -65,7 +65,7 @@ module Ci def execute!(*args, &block) execute(*args, &block).tap do |pipeline| unless pipeline.persisted? - raise CreateError, pipeline.errors.full_messages.join(',') + raise CreateError, pipeline.error_messages end end end |