Skip to content

Commit cda3523

Browse files
committed
feat(api): log hook payload in error
1 parent 1484c45 commit cda3523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app-backend-api/src/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class DevtoolsHookable implements Hookable<BackendContext> {
5757
try {
5858
await handler(payload, ctx)
5959
} catch (e) {
60-
console.error(`An error occurred in hook ${eventType}${plugin ? ` registered by plugin ${plugin.descriptor.id}` : ''}`)
60+
console.error(`An error occurred in hook '${eventType}'${plugin ? ` registered by plugin '${plugin.descriptor.id}'` : ''} with payload:`, payload)
6161
console.error(e)
6262
}
6363
}

0 commit comments

Comments
 (0)