From 1c29ea989d906b83dbe4cfbbca6be6c9ad8f4694 Mon Sep 17 00:00:00 2001 From: Tak Tran Date: Wed, 21 Nov 2018 12:31:41 +0000 Subject: [PATCH] =?UTF-8?q?Add=20quotes=20for=20output=20messages=20?= =?UTF-8?q?=F0=9F=90=BF=20v2.10.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/review-apps.js | 4 ++-- tasks/review-app.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/review-apps.js b/lib/review-apps.js index 475fd577..a7e6d84d 100644 --- a/lib/review-apps.js +++ b/lib/review-apps.js @@ -127,12 +127,12 @@ const waitForReviewAppBuild = ({ commit, minTimeout = MIN_TIMEOUT }) => async (a const build = builds.find(({ source_blob: { version } }) => version === commit); if (!build) { - throw new Error(`No review app build found for app id ${appId}, commit ${commit}`); + throw new Error(`No review app build found for app id '${appId}';, commit '${commit}'`); } const { status } = build; if (status !== BUILD_STATUS_SUCCEEDED) { - throw new Error(`Review app build for app id ${appId} (commit ${commit}) not done yet: ${status}`); + throw new Error(`Review app build for app id '${appId}' (commit '${commit}') not done yet: ${status}`); } return build; diff --git a/tasks/review-app.js b/tasks/review-app.js index 65584cd0..6adbf147 100644 --- a/tasks/review-app.js +++ b/tasks/review-app.js @@ -15,7 +15,7 @@ async function task (appName, options) { .then(res => { const { status } = res; if (status === 409) { - console.error(`Review app already created for ${branch} branch. Using existing review app for build.`); // eslint-disable-line no-console + console.error(`Review app already created for '${branch}' branch. Using existing review app for build.`); // eslint-disable-line no-console return findCreatedReviewApp({ pipelineId, branch