mirror of
https://github.com/lovasoa/whitebophir
synced 2024-11-10 14:34:20 +00:00
Bug corrections
This commit is contained in:
parent
abf028efeb
commit
70b1519205
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue