Skip to content

Commit b8b97dc

Browse files
committed
fix: CLI issue for sqlite, show traceback on any CLI exceptions
1 parent dbfd83c commit b8b97dc

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

adminforth/commands/createApp/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export default async function createApp(args) {
2222
await tasks.run();
2323
} catch (err) {
2424
console.error(chalk.red(`\n❌ ${err.message}\n`));
25+
console.error(err.stack);
2526
process.exit(1);
2627
}
2728
}

adminforth/commands/createApp/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ async function writeTemplateFiles(dirname, cwd, options) {
237237
src: '.dockerignore.hbs',
238238
dest: '.dockerignore',
239239
data: {
240-
sqliteFile: detectDbProvider(options.db).startsWith('sqlite') ? options.db.split('://')[1] : null,
240+
sqliteFile: detectDbProvider(dbUrl).startsWith('sqlite') ? dbUrl.split('://')[1] : null,
241241
},
242242
}
243243
];

0 commit comments

Comments
 (0)