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

Fix "undefined" filename in error message if file doesn't exist

parent 0a3bb9f5
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -2,6 +2,8 @@
// Convert plain-text with (optional) Synchronet attribute (Ctrl-A) codes to HTML
// $Id: typeasc.js,v 1.8 2020/07/18 04:07:29 rswindell Exp $
load("sbbsdefs.js");
load("asc2htmlterm.js");
var f;
......@@ -34,7 +36,7 @@ for(i in argv) {
break;
default:
if(this.f==undefined) {
this.f = new File(file_getcase(argv[i]));
this.f = new File(file_getcase(argv[i]) || argv[i]);
filename=this.f.name.replace(/^.*[\\\/]/,'');
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment