We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6097ce9 commit ac82b65Copy full SHA for ac82b65
src/execute-sql.ts
@@ -44,8 +44,14 @@ const executeSql = async (req: {
44
query,
45
});
46
} catch (error: unknown) {
47
- console.error(error);
48
- console.error("Error while executing sql", { error });
+ console.error("Error while executing sql:", error);
+ if (error instanceof Error && "context" in error) {
49
+ const ctx = (error as Error & { context?: { debug?: unknown } }).context;
50
+ console.error(
51
+ "Error context.debug:",
52
+ JSON.stringify(ctx?.debug, null, 2),
53
+ );
54
+ }
55
56
const errorMessage = error instanceof Error ? error.message : String(error);
57
0 commit comments