mirror of
https://github.com/knex/knex.git
synced 2026-01-05 11:38:53 +00:00
log error message (#4534)
This commit is contained in:
parent
04c9d9c3fe
commit
455fa5332d
@ -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}`)
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user