From 924afec7c2855a04d4d44512a8628cee49f763e7 Mon Sep 17 00:00:00 2001 From: Misha Wolfson Date: Thu, 22 Dec 2016 13:05:21 -0600 Subject: [PATCH] Write error message to response when serving errors --- lib/spserver.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spserver.js b/lib/spserver.js index d4523fb..fa3e440 100644 --- a/lib/spserver.js +++ b/lib/spserver.js @@ -98,7 +98,7 @@ var spserver = function (settings) { logger.error(err); res.writeHead(err.status, err.headers); - res.end(); + res.end(err.message); } } });