From ff54932e9761fc98284c5ef54f70b5328f5a08f1 Mon Sep 17 00:00:00 2001 From: meesvandongen <35409045+meesvandongen@users.noreply.github.com> Date: Tue, 9 Aug 2022 03:46:00 -0700 Subject: [PATCH] fix: add error log to publish step --- src/prepare.js | 2 +- src/publish.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/prepare.js b/src/prepare.js index 1962174f..ebd045dc 100644 --- a/src/prepare.js +++ b/src/prepare.js @@ -39,7 +39,7 @@ module.exports = async (pluginConfig, ctx) => { } } } catch (err) { - ctx.logger.error('failed to tag image, ', err) + ctx.logger.error(err) throw new AggregateError([getError('EDOCKERIMAGETAG', ctx)]) } } diff --git a/src/publish.js b/src/publish.js index ee243be6..1eea9d49 100644 --- a/src/publish.js +++ b/src/publish.js @@ -80,6 +80,7 @@ module.exports = async (pluginConfig, ctx) => { } } } catch (err) { + ctx.logger.error(err) throw new AggregateError([getError('EDOCKERIMAGEPUSH', ctx)]) } }