Commit 89f1f0c6 authored by Rob Swindell's avatar Rob Swindell

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

parent c83f5878
Pipeline #128 passed with stage
in 9 minutes and 52 seconds
......@@ -189,6 +189,10 @@ while( {
alert("Sorry, that file doesn't exist yet");
if(file_size(list[cmd].path) < 1) {
alert("Sorry, that file doens't have any content yet");
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