rem: var errorCallback = function (pb) { var div = document.createElement('p'); div.className = 'error'; $(div).html(errorMessage); $(holder).prepend(div); $('#wait').hide(); }; 
add: var errorCallback = function (pb) { var div = document.createElement('p'); div.className = 'error'; $(div).html(errorMessage); $(holder).prepend(div); $('#wait').hide(); }; 
context:   $(document).ready(function() {    $('#progress').each(function () {      var holder = this;      var uri = Drupal.settings.batch.uri;      var initMessage = Drupal.settings.batch.initMessage;      var errorMessage = Drupal.settings.batch.errorMessage;      // Success: redirect to the summary.      var updateCallback = function (progress, status, pb) {        if (progress == 100) {          pb.stopMonitoring();          window.location = uri+'&op=finished';        }      };      var errorCallback = function (pb) {        var div = document.createElement('p');        div.className = 'error';        $(div).html(errorMessage);        $(holder).prepend(div);        $('#wait').hide();      };      var progress = new Drupal.progressBar('updateprogress', updateCallback, "POST", errorCallback);      progress.setProgress(-1, initMessage);      $(holder).append(progress.element);      progress.startMonitoring(uri+'&op=do', 10);    });  });
meta: 6801	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6801/c11cb4ec24479e801076c094f043f2084b344d0c/batch.js/buggy/misc/batch.js