From 76c2895f04b8c3f37daf858d55ae0c32320d22dc Mon Sep 17 00:00:00 2001 From: Marcos Kirsch Date: Sat, 18 Apr 2015 23:15:10 -0500 Subject: [PATCH] Minimum changes to print formatting --- httpserver-error.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httpserver-error.lua b/httpserver-error.lua index 405d45b..3bc5af9 100644 --- a/httpserver-error.lua +++ b/httpserver-error.lua @@ -14,8 +14,8 @@ local function sendHeader(connection, code, codeString, mimeType) end return function (connection, args) - errorString = getHTTPStatusString(args.code) - print("Error: " .. args.code .. ": " .. errorString) + local errorString = getHTTPStatusString(args.code) + print("Error " .. args.code .. ": " .. errorString) sendHeader(connection, args.code, errorString, "text/html") connection:send("" .. args.code .. " - " .. errorString .. "

" .. args.code .. " - " .. errorString .. "

\r\n") end