We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e796dc0 commit ba7eafaCopy full SHA for ba7eafa
packages/@liexp/backend/src/providers/orm/database.provider.ts
@@ -100,14 +100,14 @@ export const toError =
100
l.error.log("An error occurred %O", e);
101
102
if (e instanceof IOError) {
103
- return e as any;
+ return e as DBError;
104
}
105
106
if (e instanceof Error) {
107
return new DBError(e.message, {
108
kind: "ServerError",
109
status: (override?.status ?? 500) + "",
110
- meta: [e.stack],
+ meta: [e.name, e.stack],
111
});
112
113
0 commit comments