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

Display a nice error message if the file is 0-bytes in size.

parent dbc659c6
Branches
Tags
No related merge requests found
......@@ -189,6 +189,10 @@ while(bbs.online) {
alert("Sorry, that file doesn't exist yet");
break;
}
if(file_size(list[cmd].path) < 1) {
alert("Sorry, that file doens't have any content 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