GoogleCloudPlatform / functions-framework-nodejs

FaaS (Function as a service) framework for writing portable Node.js functions
Apache License 2.0
1.29k stars 158 forks source link

fix!: send correct response code on exception #427

Closed matthewrobertson closed 2 years ago

matthewrobertson commented 2 years ago

This commit updates the http response we send when the customer's function throws to:

  1. always send a 500 HTTP status
  2. strip the error message from the response body when running in production