Browse Source

Minimum changes to print formatting

Marcos Kirsch 9 years ago
parent
commit
76c2895f04
1 changed files with 2 additions and 2 deletions
  1. 2 2
      httpserver-error.lua

+ 2 - 2
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("<html><head><title>" .. args.code .. " - " .. errorString .. "</title></head><body><h1>" .. args.code .. " - " .. errorString .. "</h1></body></html>\r\n")
 end