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

Display an error message to the user when attempting to view non-existent file

parent 53339990
Branches
Tags
No related merge requests found
......@@ -185,6 +185,10 @@ while(bbs.online) {
alert("Sorry, you can't read that file");
break;
}
if(!list[cmd].path) {
alert("Sorry, that file doesn't exist yet");
break;
}
var mode = P_OPENCLOSE | P_CPM_EOF;
if(list[cmd].mode !== undefined)
mode = eval(list[cmd].mode);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment