Skip to content

Commit 166f53b

Browse files
committed
fix(ketch): include errorMessage in error response output for all tools
1 parent 3790a4b commit 166f53b

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

apps/sim/tools/ketch/get_consent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const getConsentTool: ToolConfig<KetchGetConsentParams, KetchGetConsentRe
8181
return {
8282
success: false,
8383
output: {
84+
error: errorMessage,
8485
purposes: {},
8586
vendors: null,
8687
},

apps/sim/tools/ketch/get_subscriptions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const getSubscriptionsTool: ToolConfig<
6969
return {
7070
success: false,
7171
output: {
72+
error: errorMessage,
7273
topics: {},
7374
controls: {},
7475
},

apps/sim/tools/ketch/set_consent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export const setConsentTool: ToolConfig<KetchSetConsentParams, KetchSetConsentRe
8989
return {
9090
success: false,
9191
output: {
92+
error: errorMessage,
9293
purposes: {},
9394
},
9495
}

apps/sim/tools/ketch/set_subscriptions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export const setSubscriptionsTool: ToolConfig<
8888
return {
8989
success: false,
9090
output: {
91+
error: errorMessage,
9192
success: false,
9293
},
9394
}

0 commit comments

Comments
 (0)