Skip to content

Commit

Permalink
updated error message about doc utils to fix #2662
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Oct 12, 2024
1 parent 250baea commit 701146d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ export class DocViewerComponent implements OnChanges {
const DocUtils: any = getDocUtilsWorkerAsyncClass();
this.docUtilWorker = await new DocUtils();
} catch (error) {
debug.error('Could not load doc utilsweb worker');
debug.error(
'Could not load doc utilsweb worker, falling back to main thread'
);
debug.error(error);
const { DocUtils: ImportedDocUtils } = await import('../doc-utils');
this.docUtilWorker = new ImportedDocUtils();
Expand Down

0 comments on commit 701146d

Please sign in to comment.