We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c09d8dd commit 2463eb4Copy full SHA for 2463eb4
packages/plugin-nft-collections/src/actions/get-collections.ts
@@ -39,10 +39,13 @@ export const getCollectionsAction = (
39
});
40
return true;
41
} catch (error) {
42
- console.error("Error fetching NFT collections:", error);
+ const errorMessage = error instanceof Error
43
+ ? `Failed to fetch NFT collections: ${error.message}`
44
+ : "An unexpected error occurred while fetching NFT collections.";
45
+ console.error(errorMessage);
46
await runtime.messageManager.createMemory({
47
id: message.id,
- content: { text: "Failed to fetch NFT collection data." },
48
+ content: { text: errorMessage },
49
roomId: message.roomId,
50
userId: message.userId,
51
agentId: runtime.agentId,
0 commit comments