Skip to content

Commit

Permalink
fix: better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Feb 1, 2024
1 parent 67530ee commit a1b05e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function simpleRequest(url, functionRequest, functionResponse) {
} catch (error) {
functionResponse.status(500);

return functionResponse.send(error);
return functionResponse.send(error.message);
}
}

Expand All @@ -64,7 +64,7 @@ async function makeRequest(options, functionResponse) {
} catch (error) {
functionResponse.status(500);

return functionResponse.send(error);
return functionResponse.send(error.message);
}
}

Expand Down

0 comments on commit a1b05e4

Please sign in to comment.