Skip to content

Commit cc0f854

Browse files
committed
refactor(cli): Texts and Adding stacktrace
1 parent 94b8dd4 commit cc0f854

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

templates/cli/index.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ program
2929
.version(version, "-v, --version")
3030
.option("--verbose", "Show complete error log")
3131
.option("--json", "Output in JSON format")
32-
.option("--report", "Enable reporting when cli is crashing")
32+
.option("--report", "Enable reporting in case of CLI errors")
3333
.on("option:json", () => {
3434
cliConfig.json = true;
3535
})

templates/cli/lib/parser.js.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ const parseError = (err) => {
142142

143143
log(`To report this error you can:\n - Create a support ticket in our Discord server https://appwrite.io/discord \n - Create an issue in our Github\n ${githubIssueUrl.href}\n`);
144144

145+
146+
error('\n Error stacktrace');
147+
148+
console.error(err);
149+
145150
process.exit(1);
146151
})()
147152
} else {

0 commit comments

Comments
 (0)