Address debug reporting in connector (zotero/zotero-connectors#97)
This commit is contained in:
parent
21a7a49a1b
commit
ef0d9afe8e
1 changed files with 13 additions and 7 deletions
|
@ -208,17 +208,23 @@ Zotero.Debug = new function () {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Zotero.getErrors) {
|
||||
return Zotero.getSystemInfo().then(function(sysInfo) {
|
||||
|
||||
return Zotero.getSystemInfo().then(function(sysInfo) {
|
||||
if (Zotero.isConnector) {
|
||||
return Zotero.Error.getErrors().then(function(errors) {
|
||||
return errors.join('\n\n') +
|
||||
"\n\n" + sysInfo + "\n\n" +
|
||||
"=========================================================\n\n" +
|
||||
output;
|
||||
});
|
||||
}
|
||||
else {
|
||||
return Zotero.getErrors(true).join('\n\n') +
|
||||
"\n\n" + sysInfo + "\n\n" +
|
||||
"=========================================================\n\n" +
|
||||
output;
|
||||
});
|
||||
} else {
|
||||
return output;
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue