Skip to content

Commit e3cfce8

Browse files
committed
log: update catch block to match metrics handler
1 parent d438952 commit e3cfce8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/log.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,11 @@ export class Log {
163163
);
164164
}
165165
} catch (err: any) {
166-
throw new ApiException<undefined>(err, 'Error occurred in log request', undefined, err);
166+
if (err instanceof ApiException) {
167+
throw err;
168+
}
169+
170+
throw new ApiException<undefined>(500, 'Error occurred in log request', undefined, err);
167171
}
168172

169173
return controller;

0 commit comments

Comments
 (0)