Show a different error message for WinWord when no document is found (#4563)
And link to a different troubleshooting page
This commit is contained in:
parent
5d998a3b37
commit
ed311cacb9
3 changed files with 9 additions and 3 deletions
|
@ -1 +1 @@
|
|||
Subproject commit bb5e422c816f6233528ae8a0e5e51328a8b169bf
|
||||
Subproject commit 798a96fbed101d74ce7867bccf3f5e07af192b2c
|
|
@ -355,13 +355,18 @@ Zotero.Integration = new function() {
|
|||
|
||||
this._handleCommandError = async function (document, session, e) {
|
||||
try {
|
||||
const supportURL = "https://www.zotero.org/support/kb/debugging_broken_documents";
|
||||
let supportURL = "https://www.zotero.org/support/kb/debugging_broken_documents";
|
||||
var displayError;
|
||||
if (e instanceof Zotero.Exception.Alert) {
|
||||
displayError = e.message;
|
||||
}
|
||||
else {
|
||||
if (e.toString().indexOf("ExceptionAlreadyDisplayed") === -1) {
|
||||
if (e.toString().includes("Could not find a running Word instance.")) {
|
||||
displayError = Zotero.getString('integration-error-unable-to-find-winword')
|
||||
+ "\n\n" + Zotero.getString("integration.error.viewTroubleshootingInfo");
|
||||
supportURL = "https://www.zotero.org/support/kb/could_not_find_a_running_word_instance";
|
||||
}
|
||||
else if (e.toString().indexOf("ExceptionAlreadyDisplayed") === -1) {
|
||||
displayError = Zotero.getString("integration.error.generic")
|
||||
+ "\n\n" + Zotero.getString("integration.error.viewTroubleshootingInfo");
|
||||
}
|
||||
|
|
|
@ -338,6 +338,7 @@ integration-prefs-automaticJournalAbbeviations-description = The “Journal Abbr
|
|||
integration-prefs-exportDocument =
|
||||
.label = Switch to a Different Word Processor…
|
||||
|
||||
integration-error-unable-to-find-winword = { -app-name } could not find a running Word instance.
|
||||
|
||||
publications-intro-page =
|
||||
.label = My Publications
|
||||
|
|
Loading…
Reference in a new issue