Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions connector.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,13 @@ Zotero.Connector = new function() {
console.error(`JabRef: Error connecting to JabRef: '${response.output}' at '${response.stacktrace}'`);
handleError(response.output, '', response.stacktrace)
} else {
console.error(`JabRef: Error connecting to JabRef: '${response.message}' with details '${response.output}' at '${response.stacktrace}'`);
handleError(response.message, response.output, response.stacktrace)
if (response.message) {
console.error(`JabRef: Error connecting to JabRef: '${response.message}' with details '${response.output}' at '${response.stacktrace}'`);
handleError(response.message, response.output, response.stacktrace)
} else {
console.error("JabRef: Error connecting to JabRef. Unexpected response type", response)
handleError("Error connecting to JabRef. Unexpected response type", JSON.stringify(response))
}
}
})
.catch(error => {
Expand Down