Skip to content
Permalink
Browse files

[JENKINS-48080] Shows errors

  • Loading branch information...
Francisco Javier Fernandez Gonzalez
Francisco Javier Fernandez Gonzalez committed Nov 29, 2017
1 parent 53a320a commit 9b4e831c139a32cd53dd42419f7780d8cd7616ac
Showing with 4 additions and 3 deletions.
  1. +4 −3 war/src/main/js/pluginSetupWizardGui.js
@@ -889,16 +889,17 @@ var createPluginSetupWizard = function(appendTarget) {
// ignore JSON parsing issues, this may be HTML
}
// we get 200 OK
var $page = $(data);
var responseText = data.responseText;
var $page = $(responseText);
var $errors = $page.find('.error');
if($errors.length > 0) {
var $main = $page.find('#main-panel').detach();
if($main.length > 0) {
data = data.replace(/body([^>]*)[>](.|[\r\n])+[<][/]body/,'body$1>'+$main.html()+'</body');
responseText = responseText.replace(/body([^>]*)[>](.|[\r\n])+[<][/]body/,'body$1>'+$main.html()+'</body');
}
var doc = $('iframe[src]').contents()[0];
doc.open();
doc.write(data);
doc.write(responseText);
doc.close();
}
else {

0 comments on commit 9b4e831

Please sign in to comment.
You can’t perform that action at this time.