summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/http.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/http.js b/server/http.js
index a9a4358..68b0b70 100644
--- a/server/http.js
+++ b/server/http.js
@@ -192,8 +192,10 @@ module.exports.start = function () {
'Content-Type': "text/plain",
'Set-Cookie': '__mpws_request=' + year + month + day + hour + min + sec
});
- res.write(e.stack);
- res.end();
+ try {
+ res.write(e.stack);
+ res.end();
+ } catch (e) {}
}
return;
} else {