paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3f2c7e548d0c69f429bb33a85530bd9eb7eaf7f7
parent b3a8ef7c938fe4f4ec8d1c1d785bba1a8eb7f85e
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Mon, 13 May 2019 19:46:30 -0400

Fix improper else if statement in error handling

Diffstat:
Mserver/app.js | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/server/app.js b/server/app.js @@ -56,11 +56,9 @@ function handle_error(err, res) { res.end(content, "utf-8"); }); } - else if (err) { - console.log(err); - } else { // If there is any other error, report error 500 + console.log(err); res.writeHead(500, {"Content-Type": "text/plain"}); res.end("HTTP Server Error: " + err.code + "\n"); }