Skip to content

Commit

Permalink
fix: improve logs
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker committed Jan 29, 2021
1 parent afc1286 commit 889e6c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/cloud-function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ export const serve = async (request: Request, response: Response): Promise<void>
} catch (error) {
console.error(error)
if (error instanceof HTTPError) {
console.error(error.response.body)
console.error('Response body:', error.response.body)
console.error('Request payload:', error.options.json)
}
response.status(error.status ?? 500).send(error?.response?.body || error.message)
throw error
Expand Down

0 comments on commit 889e6c3

Please sign in to comment.