Skip to content

Commit 3048b58

Browse files
committed
feat(decorators): "Added 'throw error' statement in Catch decorator"
1 parent 47ce796 commit 3048b58

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/decorators/ErrorHandlingDecorator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export function Catch(customResponse?: ErrorResponse) {
2020
if (ctx && typeof ctx.reply === 'function') {
2121
await ctx.reply(errorResponse.message);
2222
}
23+
throw error;
2324
}
2425
};
2526

0 commit comments

Comments
 (0)