Bug corrections

This commit is contained in:
Ophir LOJKINE 2013-12-26 02:50:00 +01:00
parent abf028efeb
commit 70b1519205
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@
elem.setAttribute("x", fieldData.x);
elem.setAttribute("y", fieldData.y);
elem.setAttribute("font-size", fieldData.size);
elem.style.fill = fieldData.color;
elem.setAttribute("fill", fieldData.color);
if (fieldData.txt) elem.textContent = fieldData.txt;
svg.appendChild(elem);
return elem;

View file

@ -27,7 +27,7 @@ console.log("Server listening on "+PORT);
var fileserver = new nodestatic.Server(WEBROOT);
function serveError(request, response, err) {
console.warn("Error serving '"+request.url+"' : "+err.message);
console.warn("Error serving '"+request.url+"' : "+err.status+" "+err.message);
fileserver.serveFile('error.html', err.status, {}, request, response);
}