Verified Commit 3bd506cf authored by Scoots Dash's avatar Scoots Dash 🦄
Browse files

Fix ERR_STREAM_WRITE_AFTER_END when errored

parent ad697968
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment