Show "More Information…" button on WebDAV SSL cert error

(Though the button takes you to to
https://www.zotero.org/support/kb/ssl_certificate_error rather than
https://www.zotero.org/support/kb/incomplete_cert_chain, since the error
comes from Zotero.HTTP.)
This commit is contained in:
Dan Stillman 2018-02-09 02:35:15 -05:00
parent 84d8bb4020
commit e9a3f9b0e0

View file

@ -866,7 +866,7 @@ Zotero.Sync.Storage.Mode.WebDAV.prototype = {
break;
case "NONEXISTENT_FILE_NOT_MISSING":
var errorTitle = Zotero.getString('sync.storage.error.webdav.serverConfig.title');
errorTitle = Zotero.getString('sync.storage.error.webdav.serverConfig.title');
errorMsg = Zotero.getString('sync.storage.error.webdav.nonexistentFileNotMissing');
break;
@ -877,18 +877,25 @@ Zotero.Sync.Storage.Mode.WebDAV.prototype = {
}
}
// TEMP
if (!errorMsg) {
errorMsg = err;
var e;
if (errorMsg) {
e = {
message: errorMsg,
// Prevent Report Errors button for known errors
dialogButtonText: null
};
Zotero.logError(errorMsg);
}
else {
e = err;
Zotero.logError(err);
}
Zotero.logError(errorMsg);
if (!skipSuccessMessage) {
if (!errorTitle) {
var errorTitle = Zotero.getString("general.error");
errorTitle = Zotero.getString("general.error");
}
promptService.alert(window, errorTitle, errorMsg);
Zotero.Utilities.Internal.errorPrompt(errorTitle, e);
}
return false;
}),