Fix error serialization in 4 catch blocks where JSON.stringify(error) produces "{}"
#341
+202
−4
JSON.stringify(error) produces "{}"
#341