Commit 3c0e406f authored by Rob Swindell's avatar Rob Swindell

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

parent b6b4ee1d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment