Await contact handler to surface errors
This commit is contained in:
parent
4c0bdbdbac
commit
5f01d89a62
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ export const onRequest: PagesFunction<Env> = async (context) => {
|
|||
405,
|
||||
);
|
||||
}
|
||||
return handlePost(context);
|
||||
return await handlePost(context);
|
||||
} catch (error) {
|
||||
const message =
|
||||
error instanceof Error ? error.message : "Unknown error";
|
||||
|
|
|
|||
Loading…
Reference in a new issue