anchor.diff:              success: function (data) {
               },
               error: function (xhr, textStatus, errorThrown) {
  -                alert(textStatus);
  +                $.getJSON("<%= disk_wizards_engine.debug_info_path %>", function (data) {
  +                    if (data["error"]) {
  +                        alert("An error occourd while generating debug_info paste:\n\n" + data['error']);
  +                        return 0
  +                    }
  +                    alert("Debug info URL: " + data['url']);
  +
  +                });
               }
   
           });
       }
   
  -        function refresh(){
  -            $("#devices_data ,#next_button ,#refresh_devices_button").fadeOut();
  -            $("#loading_animation").fadeIn();
  -            $("#table_contents").empty();
  -            getDevices();
  -        }
  +    function refresh() {
  +        $("#devices_data ,#next_button ,#refresh_devices_button").fadeOut();
  +        $("#loading_animation").fadeIn();
  +        $("#table_contents").empty();
  +        getDevices();
  +    }
   </script>
   
   <div class="panel-body">
  
positive.code:         getDevices();
      });
  
      function getDevices(){
          $.ajax({
              url: "/tab/disks/disk_wizards/get_all_devices",
              async: true,
  
negative.code:   </div>
  
    <div class="row text-right">
      <button id="refresh_devices_button" onclick="refresh()" type="button" style="float: left;display: none;" class="btn btn-default btn-sm">
        <span class="glyphicon glyphicon-refresh"></span> Refresh Devices
      </button>
  
      <%= link_to '#', class: "btn btn-success", id: 'next_button', style: 'display: none;', :onclick => "$('#select_device').submit()" do %>
          Next &rarr;
      <% end %>
      </form>
  