Commit a48b3ad6 authored by Leo Iannacone's avatar Leo Iannacone

humanized file deleted error

parent 783bd850
......@@ -579,6 +579,8 @@ function Page_Distrubion(socket) {
set: function (socket_error) {
if ($('#error').is(':visible'))
return;
socket_error = socket_error.replace(/File (.*) deleted./,
'<b>File removed</b>&nbsp;&nbsp;$1');
socket_error = socket_error.replace(/ENOENT, [a-z]+ '(.*)'/,
'<b>No such file or directory</b>&nbsp;&nbsp;$1');
$('#error .message').html(socket_error);
......
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