From 5d5a59d1b1700a7b736fa6527a7ba2d60055ff9f Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Mon, 28 Nov 2016 11:04:41 +0100 Subject: [PATCH] Make important info bold when error occurs --- bin/now-deploy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/now-deploy.js b/bin/now-deploy.js index 7c49a7b..1752b59 100755 --- a/bin/now-deploy.js +++ b/bin/now-deploy.js @@ -235,8 +235,8 @@ async function sync(token) { } else if (isValidRepo === 'no-valid-url') { stopDeployment(`URL is no valid repository from GitHub or GitLab.`) } else if (isValidRepo) { - const gitRef = gitHubRepo.ref ? `with the ref "${gitHubRepo.ref}" ` : '' - stopDeployment(`There's no repository named "${gitHubRepo.main}" ${gitRef}on GitHub`) + const gitRef = gitHubRepo.ref ? `with "${chalk.bold(gitHubRepo.ref)}" ` : '' + stopDeployment(`There's no repository named "${chalk.bold(gitHubRepo.main)}" ${gitRef}on GitHub or GitLab`) } else { stopDeployment(`Could not read directory ${chalk.bold(path)}`) }