#CloudFunctions, Error Throw

2 messages · Page 1 of 1 (latest)

stiff charm
#

What is the correct way to throw error, and get a failed state in the cloud functions? I get 200, when there are actuall errors. And i want to know exactly when something fails. Node.

junior mantle
#

I thought it was just throwing, so if you did throw new Error("Error message"); without catching it it would cause the function to fail?