Browse Source

WebUI: MochaUI: Show entire error message

adaptive-webui-19844
Gabriele 10 years ago
parent
commit
d06d7b1f6d
  1. 2
      src/webui/www/public/scripts/mocha-yc.js
  2. 2
      src/webui/www/public/scripts/mocha.js

2
src/webui/www/public/scripts/mocha-yc.js

File diff suppressed because one or more lines are too long

2
src/webui/www/public/scripts/mocha.js

@ -237,7 +237,7 @@ MUI.extend({ @@ -237,7 +237,7 @@ MUI.extend({
var getTitle = new RegExp("<title>[\n\r\s]*(.*)[\n\r\s]*</title>", "gmi");
var error = getTitle.exec(response.responseText);
if (!error) error = 'Unknown';
contentContainer.set('html', '<h3>Error: ' + error[1] + '</h3>');
contentContainer.set('html', '<h3>Error: ' + error + '</h3>');
if (args.recipient == 'window'){
instance.hideSpinner();
}

Loading…
Cancel
Save