Skip to content

Commit 111bd98

Browse files
committed
Return error from API to model
1 parent 626397d commit 111bd98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/asset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class Asset implements Asset {
112112
} catch (error) {
113113
logger.error(`Error calling API '${url}': ${error}`);
114114
return {
115-
content: [{ type: 'text', text: errMsg || 'Error' }],
115+
content: [{ type: "text", text: `${errMsg}: ${(error as Error).message}` }],
116116
structuredContent: { error: (error as Error).message },
117117
isError: true,
118118
};

0 commit comments

Comments
 (0)