Skip to content

Commit

Permalink
better log
Browse files Browse the repository at this point in the history
  • Loading branch information
steve8708 committed Jul 10, 2024
1 parent 39b204e commit 30d9a8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/helpers/error.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { dim } from 'kolorist';
import { version } from '../../package.json';
import { commandName } from './constants';

export class KnownError extends Error {}

Expand All @@ -10,7 +11,7 @@ export const handleCliError = (error: any) => {
if (error.stack) {
console.error(dim(error.stack.split('\n').slice(1).join('\n')));
}
console.error(`\n${indent}${dim(`micro-agent v${version}`)}`);
console.error(`\n${indent}${dim(`${commandName} v${version}`)}`);
console.error(
`\n${indent}Please open a Bug report with the information above:`
);
Expand Down

0 comments on commit 30d9a8e

Please sign in to comment.