Skip to content

Commit

Permalink
Merge pull request #58 from shopgate/CLOUDSDK-104
Browse files Browse the repository at this point in the history
Update error logs on update pipelines
  • Loading branch information
Daniel Huth authored Dec 12, 2017
2 parents f3ea201 + 6377cd6 commit 23dd8e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/actions/BackendAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,14 @@ class BackendAction {
logger.info(`Start uploading pipeline '${file}'`)
this._pipelineChanged(file, (err, pipelineId) => {
if (err) {
if (err.code === 'PIPELINE_INVALID') {
const messageObj = JSON.parse(err.message)
messageObj.errors.forEach(error => {
logger.error({field: error.field}, `Pipeline invalid: ${error.message}`)
})
return
}

logger.error(`Error while uploading pipeline '${file}': ${err.message}`)
if (err.code === 'STEP_NOT_FOUND') logger.info('Check if the extension containing this step is attached')
return
Expand Down

0 comments on commit 23dd8e5

Please sign in to comment.