app/views/script/index.erb in tailog-0.6.3 vs app/views/script/index.erb in tailog-0.6.4

- old
+ new

@@ -68,11 +68,11 @@ $content .html("<hr/>") .append('<span class="text-info">' + data.server_hostname + " - " + data.process_uuid + "</span>") .append(ansi_up.ansi_to_html(data.content)); } catch (error) { - console.error(error) + console.error(error); } } }); }); @@ -104,12 +104,11 @@ currentTries += 1; concurrent += 1; }, error: function() { $content - .html("<hr/>") - .append('<span class="text-danger">Oops! Something went wrong, please try again later!</span>') + .append('<hr/><span class="text-danger">Oops! Something went wrong, but we will carry on!</span>'); }, success: function(json) { try { var data = JSON.parse(json); @@ -126,10 +125,10 @@ var percent = +parseFloat(currentTries / totalEstimate * 100).toFixed(2); $indicator.text(currentTries + " / " + totalEstimate + " Requests, " + discovered.length + " Instances (" + percent + "%)"); $progressBar.width(percent + "%"); } catch (error) { - console.error(error) + console.error(error); } }, complete: function() { concurrent -= 1; }