File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -138,8 +138,13 @@ Zotero.Connector = new function() {
138
138
console . error ( `JabRef: Error connecting to JabRef: '${ response . output } ' at '${ response . stacktrace } '` ) ;
139
139
handleError ( response . output , '' , response . stacktrace )
140
140
} else {
141
- console . error ( `JabRef: Error connecting to JabRef: '${ response . message } ' with details '${ response . output } ' at '${ response . stacktrace } '` ) ;
142
- handleError ( response . message , response . output , response . stacktrace )
141
+ if ( response . message ) {
142
+ console . error ( `JabRef: Error connecting to JabRef: '${ response . message } ' with details '${ response . output } ' at '${ response . stacktrace } '` ) ;
143
+ handleError ( response . message , response . output , response . stacktrace )
144
+ } else {
145
+ console . error ( "JabRef: Error connecting to JabRef. Unexpected response type" , response )
146
+ handleError ( "Error connecting to JabRef. Unexpected response type" , JSON . stringify ( response ) )
147
+ }
143
148
}
144
149
} )
145
150
. catch ( error => {
You can’t perform that action at this time.
0 commit comments