Skip to content
Snippets Groups Projects
Commit 40ce7c59 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix error "creating" log message details (filename and error value)

... using the wrong File object for those values. Very confusing.
parent b8a6a110
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ function xjs_compile(filename) { ...@@ -86,7 +86,7 @@ function xjs_compile(filename) {
f.write(script); f.write(script);
f.close(); f.close();
} else { } else {
log(LOG_ERR, "!ERROR " + file.error + " creating " + file.name); log(LOG_ERR, "!ERROR " + f.error + " creating " + f.name);
} }
} }
return(ssjs_filename); return(ssjs_filename);
...@@ -116,4 +116,4 @@ function xjs_eval(filename, str) { ...@@ -116,4 +116,4 @@ function xjs_eval(filename, str) {
f.close(); f.close();
return filename + '.html'; return filename + '.html';
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment