chore: cleanup and apply requested changes

This commit is contained in:
Ralph Khreish
2025-08-27 23:32:35 +02:00
parent 86d9c4b194
commit 5ed3f2f16b
18 changed files with 165 additions and 231 deletions

View File

@@ -1,7 +0,0 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["../../biome.json"],
"files": {
"include": ["src/**/*.ts", "src/**/*.tsx"]
}
}

View File

@@ -93,7 +93,10 @@ export class ListTasksCommand extends Command {
this.displayResults(result, options);
}
} catch (error: any) {
console.error(chalk.red(`Error: ${error.message}`));
const msg = error?.getSanitizedDetails?.() ?? {
message: error?.message ?? String(error)
};
console.error(chalk.red(`Error: ${msg.message || 'Unexpected error'}`));
if (error.stack && process.env.DEBUG) {
console.error(chalk.gray(error.stack));
}