Skip to content

Commit

Permalink
ae name
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Jan 9, 2024
1 parent a2a847e commit 4e0c7c8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion content/ErrorReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,16 @@ export class ErrorReport {
if (autoExports.length) {
info += 'Auto-exports:\n'
for (const ae of autoExports) {
info += ` path: ${JSON.stringify(ae.path)}\n`
info += ` path: ${JSON.stringify(ae.path)}`
switch (ae.type) {
case 'collection':
info += `(${Zotero.Collections.get(ae.id)?.name || '<collection>'})`
break
case 'library':
info += `(${Zotero.Libraries.get(ae.id)?.name || '<library>'})`
break
}
info += '\n'
for (const [k, v] of Object.entries(ae)) {
if (k === 'path') continue
info += ` ${k}: ${JSON.stringify(v)}`
Expand Down

0 comments on commit 4e0c7c8

Please sign in to comment.