Skip to content

Commit 4cf20b5

Browse files
author
james_tsai
committed
fix: internal server error handler typing
1 parent 3cb69c1 commit 4cf20b5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nodejs/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class API {
3737
}
3838

3939
if (err.response.status >= 500) {
40-
throw new HackMDErrors.HttpResponseError(
40+
throw new HackMDErrors.InternalServerError(
4141
`HackMD internal error (${err.response.status} ${err.response.statusText})`,
4242
err.response.status,
4343
err.response.statusText,

0 commit comments

Comments
 (0)