aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2019-01-11 23:55:37 +0800
committerFabio Berger <me@fabioberger.com>2019-01-11 23:55:37 +0800
commit7f5a2c972bb86df77c423fb7029e9a629ecc1ede (patch)
treeb22d45529ba654b4f8e8730632f93ea341d60130
parentdad6404c7f633c9a8c3ee98a7464170ba2c68913 (diff)
downloaddexon-sol-tools-7f5a2c972bb86df77c423fb7029e9a629ecc1ede.tar
dexon-sol-tools-7f5a2c972bb86df77c423fb7029e9a629ecc1ede.tar.gz
dexon-sol-tools-7f5a2c972bb86df77c423fb7029e9a629ecc1ede.tar.bz2
dexon-sol-tools-7f5a2c972bb86df77c423fb7029e9a629ecc1ede.tar.lz
dexon-sol-tools-7f5a2c972bb86df77c423fb7029e9a629ecc1ede.tar.xz
dexon-sol-tools-7f5a2c972bb86df77c423fb7029e9a629ecc1ede.tar.zst
dexon-sol-tools-7f5a2c972bb86df77c423fb7029e9a629ecc1ede.zip
Add actual error message thrown
-rw-r--r--packages/monorepo-scripts/src/prepublish_checks.ts4
1 files changed, 3 insertions, 1 deletions
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<void> {
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
+ }`,
);
}
}