Log on function exception
This commit is contained in:
@@ -82,6 +82,7 @@ app.all('/', function (req, res) {
|
|||||||
try {
|
try {
|
||||||
userFunction(context, callback);
|
userFunction(context, callback);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
console.log(`Function error: ${e}`);
|
||||||
callback(500, "Internal server error")
|
callback(500, "Internal server error")
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user