From 24cfc03811b4d3785e263811841a2df1d5362461 Mon Sep 17 00:00:00 2001 From: jomo Date: Tue, 8 Nov 2016 00:21:33 +0100 Subject: [PATCH] print 'Not found' on invalid path --- lib/server.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index 2e5de3b..e4d45b1 100644 --- a/lib/server.js +++ b/lib/server.js @@ -32,7 +32,11 @@ function asset_request(req, callback) { }); }); } else { - callback({}); + callback({ + body: "Not found", + status: -2, + code: 404, + }); } }); }