Skip to content

Commit a29f62f

Browse files
committed
chore: use err message if present
1 parent 7057942 commit a29f62f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/backend/src/apps/aisay/common/error-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const parseError = (error: Error | any) => {
2-
let stepErrorName = 'Failed to call model'
2+
let stepErrorName = error.response.data.message || 'Failed to call model'
33
let stepErrorSolution = 'Please try again.'
44

55
if (

0 commit comments

Comments
 (0)