log error message (#4534)

This commit is contained in:
Yuri Sosiak 2021-07-10 06:30:25 -06:00 committed by GitHub
parent 04c9d9c3fe
commit 455fa5332d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,6 +59,9 @@ function resolveEnvironmentConfig(opts, allConfigs, configFilePath) {
function exit(text) {
if (text instanceof Error) {
if (text.message) {
console.error(color.red(text.message));
}
console.error(
color.red(`${text.detail ? `${text.detail}\n` : ''}${text.stack}`)
);