From 7f5a2c972bb86df77c423fb7029e9a629ecc1ede Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Fri, 11 Jan 2019 16:55:37 +0100 Subject: Add actual error message thrown --- packages/monorepo-scripts/src/prepublish_checks.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/monorepo-scripts/src/prepublish_checks.ts b/packages/monorepo-scripts/src/prepublish_checks.ts index 61ac76823..75a8935c8 100644 --- a/packages/monorepo-scripts/src/prepublish_checks.ts +++ b/packages/monorepo-scripts/src/prepublish_checks.ts @@ -26,7 +26,9 @@ async function checkDockerHubSetupAsync(): Promise { await execAsync(`echo "$DOCKER_PASS" | docker login -u $DOCKER_USERNAME --password-stdin`); } catch (err) { throw new Error( - 'Failed to log you into the `docker` commandline tool. Make sure you have environment variables `DOCKER_USERNAME` and `DOCKER_PASS` set.', + `Failed to log you into the 'docker' commandline tool. Make sure you have environment variables 'DOCKER_USERNAME; and 'DOCKER_PASS' set. Full error: ${ + err.message + }`, ); } } -- cgit v1.2.3