Log on function exception

This commit is contained in:
Soam Vasani
2016-12-11 19:58:04 -08:00
parent 0fb4cc1536
commit 5e3adc0b59
+1
View File
@@ -82,6 +82,7 @@ app.all('/', function (req, res) {
try {
userFunction(context, callback);
} catch(e) {
console.log(`Function error: ${e}`);
callback(500, "Internal server error")
}
});