mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Update next-connect middleware to return next() to fix error handling
This commit is contained in:
@@ -12,7 +12,7 @@ async function sendEditBeerPostRequest(
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
throw new Error('something went wrong');
|
||||
throw new Error(`${response.status}: ${response.statusText}`);
|
||||
}
|
||||
|
||||
const json = await response.json();
|
||||
|
||||
Reference in New Issue
Block a user