Commit 82558ba5 authored by Leo Iannacone's avatar Leo Iannacone

humanized ENOENT error message

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