Add actual error message thrown

This commit is contained in:
Fabio Berger 2019-01-11 16:55:37 +01:00
parent dad6404c7f
commit 7f5a2c972b

View File

@ -26,7 +26,9 @@ async function checkDockerHubSetupAsync(): Promise<void> {
await execAsync(`echo "$DOCKER_PASS" | docker login -u $DOCKER_USERNAME --password-stdin`); await execAsync(`echo "$DOCKER_PASS" | docker login -u $DOCKER_USERNAME --password-stdin`);
} catch (err) { } catch (err) {
throw new Error( 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
}`,
); );
} }
} }