Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 50 additions & 133 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"leo-config": "^1.0.3"
},
"devDependencies": {
"mocha": "^3.5.3"
"mocha": "^5.2.0"
},
"author": "LEO Enterprises <dev@leoplatform.io> (http://leoplatform.io)",
"repository": "LeoPlatform/Nodejs",
Expand Down
5 changes: 4 additions & 1 deletion wrappers/resource.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ module.exports = function(configOverride, botHandler) {
body: err.toString()
});
} else if (err) {
console.log(err);
callback(null, {
statusCode: 500,
headers: {
Expand Down Expand Up @@ -99,13 +100,15 @@ module.exports = function(configOverride, botHandler) {
body: err.toString()
});
} else if (err) {
console.log(err);
callback(null, {
statusCode: 500,
headers: {
'Content-Type': config.ErrorContentType || 'text/html',
"Access-Control-Allow-Origin": config.cors ? config.cors : undefined
},
body: err.toString()
//we caught an error they didn't send us, don't reveal it here
body: "Unexpected Server Error"
});
}
});
Expand Down