Skip to content

Commit

Permalink
fix: nitro util template
Browse files Browse the repository at this point in the history
  • Loading branch information
adhamfarrag committed Jan 9, 2024
1 parent 01eb0ef commit d8c1c64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/templates/typeScriptFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const defineWrappedResponseHandler = <T extends EventHandlerRequest, D> (
): EventHandler<T, D> =>
defineEventHandler<T>(async (event) => {
try {
const response = await handler(event)
return { response }
} catch (err) {
// Error handling
Expand Down

0 comments on commit d8c1c64

Please sign in to comment.