We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aac2a86 commit d21043eCopy full SHA for d21043e
npm-app/src/agents/load-agents.ts
@@ -1,7 +1,6 @@
1
import * as fs from 'fs'
2
import * as path from 'path'
3
4
-import { getErrorObject } from '@codebuff/common/util/error'
5
import { cyan, green } from 'picocolors'
6
7
import { getAllTsFiles, getAgentsDirectory } from './agent-utils'
@@ -35,7 +34,9 @@ export async function loadLocalAgents({
35
34
agentModule = await require(fullPath)
36
} catch (error: any) {
37
if (verbose) {
38
- console.error('Error importing agent:', getErrorObject(error))
+ console.error(
+ `Error importing agent: ${error.name} - ${error.message}\n${error.stack}`,
39
+ )
40
}
41
continue
42
0 commit comments