Skip to content

Commit 048793f

Browse files
committed
fix error message
1 parent 92c3008 commit 048793f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/interface/cli/commands/root/create.cmd.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const get = new Command({
1616
weight: 20,
1717
},
1818
builder: (yargs) => {
19+
debugger;
1920
crudFilenameOption(yargs);
2021
return yargs;
2122
},

lib/interface/cli/helpers/general.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const printError = (error) => {
1111
if ((process.env.DEBUG || '').includes(defaults.DEBUG_PATTERN)) {
1212
console.error(error.stack);
1313
} else {
14-
console.error(`${error.message}`);
14+
console.error(`${error.message} \n ${_.get(error, "cause")} \n`);
1515
}
1616
};
1717

0 commit comments

Comments
 (0)