I spent a few hours trying to figure out a bug in ...
# prisma-whats-new
l
I spent a few hours trying to figure out a bug in one of my cloud functions. It turns it it was something small and silly on my part, but it took far too long to figure out what it was because the error was not showing up in the logs for the function. It wasn't until I took the function and changed it so that I could run it on my local machine that I was able to finally see the error. It was an easy fix. Can we get better error reporting for cloud functions? Absolutely all errors need to be logged if possible
s
Thanks Jordan - this is great feedback. We will make sure compile errors are also logged correctly.
l
Thanks! This was a runtime error though
a
Hmmm.. I deleted my comment based on @sorenbs response. I think the big try-catch in the function might work after all...