Update SSL Certificate action - change UI to show error text (English, non-localized) instead of error code(530, 531) when API call returns error.

This commit is contained in:
Jessica Wang 2011-02-04 11:18:45 -08:00
parent 592cfc6b73
commit 144c6fcf2d

View File

@ -1610,7 +1610,8 @@ function initUpdateConsoleCertButton($midMenuAddLink2) {
$thisDialog.dialog("close");
// TODO: Add a confirmation message
} else if (result.jobstatus == 2) { // Failed
var errorMsg = result.jobresult.errortext;
//var errorMsg = result.jobresult.errortext;
var errorMsg = g_dictionary["label.failed"] + " - " + fromdb(result.jobresult.errortext);
$thisDialog.find("#info_container").text(errorMsg).show();
}
}