Log on function exception
This commit is contained in:
@@ -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")
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user