From 30d9a8ea2803cf9de3519d5361f3038ed0124787 Mon Sep 17 00:00:00 2001 From: Steve Sewell Date: Wed, 10 Jul 2024 07:29:03 -0700 Subject: [PATCH] better log --- src/helpers/error.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/helpers/error.ts b/src/helpers/error.ts index 81ac315..f52ad19 100644 --- a/src/helpers/error.ts +++ b/src/helpers/error.ts @@ -1,5 +1,6 @@ import { dim } from 'kolorist'; import { version } from '../../package.json'; +import { commandName } from './constants'; export class KnownError extends Error {} @@ -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:` );