Skip to content

Commit

Permalink
Add error message (#116)
Browse files Browse the repository at this point in the history
* Added limit to JSON request body

* Update package-lock.json

* Added error message
  • Loading branch information
vinnie4k committed Oct 8, 2023
1 parent 47193d4 commit 926eff8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares/FlyerMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const FlyerUploadErrorInterceptor: MiddlewareFn<Context> = async ({ args, contex
// If null, move on
return await next();
} catch (err) {
throw new Error('An error occured while uploading the flyer image.');
throw new Error(err as string);
}
};

Expand Down

0 comments on commit 926eff8

Please sign in to comment.