Skip to content

Commit 1b56c10

Browse files
Fix: Display error message when PDF export fails
Replace TODO comment with call to this.activity.errorMsg() so PDF export failures are surfaced to the user instead of only being logged to console.
1 parent 0814c75 commit 1b56c10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/SaveInterface.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ class SaveInterface {
827827
if (!success) {
828828
// eslint-disable-next-line no-console
829829
console.debug("Error: " + dataurl);
830-
//TODO: Error message box
830+
this.activity.errorMsg(_("Error generating PDF") + ": " + dataurl);
831831
} else {
832832
this.activity.save.download("pdf", dataurl, filename);
833833
}

0 commit comments

Comments
 (0)