Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
hal-wang committed Mar 25, 2022
1 parent 4778dbe commit 5d95a02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Startup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ export default class Startup {
mdw.init(this.ctx, 0);
await mdw.invoke();
} catch (err) {
if (err.res) {
this.ctx.res.update(err.res);
const error = err as any;
if (error.res) {
this.ctx.res.update(error.res);
} else {
throw err;
}
Expand Down

0 comments on commit 5d95a02

Please sign in to comment.