🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix: improve the skill execution error body back (#13868)
LiJian0699a0b5ce55
diff --git a/src/server/services/market/index.ts b/src/server/services/market/index.tsindex b3dcde4d0e7..73d5c729a29 100644--- a/src/server/services/market/index.ts+++ b/src/server/services/market/index.ts@@ -485,9 +485,19 @@ export class MarketService {const err = error as Error;console.error('MarketService.executeLobehubSkill error %s/%s: %O', provider, toolName, err);+ // MarketAPIError carries the full error response body from the API,+ // including structured details (command, exitCode, stdout, stderr).+ // Extract it so the content is not empty on failure.+ const errorBody = (err as any).errorBody;+ const skillError = errorBody?.error;+ const content = skillError ? JSON.stringify(skillError) : err.message;+return {- content: err.message,- error: { code: 'LOBEHUB_SKILL_ERROR', message: err.message },+ content,+ error: {+ code: skillError?.code || 'LOBEHUB_SKILL_ERROR',+ message: skillError?.message || err.message,+ },success: false,};}