Cleanly catch exceptions from sendResponse

Closes #178
This commit is contained in:
Sandro Santilli
2014-03-04 18:04:58 +01:00
parent 97e00fb47d
commit 0afc9c154b
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -11,6 +11,7 @@ Enhancements:
- Include API docs (#164)
- Add "cacheDns" statsd setting in the example configs
- Do not send duplicated stats on template instanciation
- Cleanly catch exceptions from sendResponse (#178)
Bug fixes:
+4
View File
@@ -109,6 +109,10 @@ var CartodbWindshaft = function(serverOptions) {
function sendResponse(err, added) {
if ( err ) console.log(err + err.stack);
ws_sendResponse.apply(that, thatArgs);
return null;
},
function finish(err) {
if ( err ) console.log(err + err.stack);
}
);
};