Skip to content

Commit

Permalink
borg-maketexi: Demote export errors instead of silencing completely
Browse files Browse the repository at this point in the history
Also don't claim success in case of failure.
  • Loading branch information
tarsius committed Oct 21, 2024
1 parent 32d4e1d commit 13caf51
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions borg.el
Original file line number Diff line number Diff line change
Expand Up @@ -984,8 +984,9 @@ doesn't do anything."
(borg--file-tracked-p export))
(message "Exporting %s..." file)
(require (quote ox))
(ignore-errors (org-texinfo-export-to-texinfo))
(message "Exporting %s...done" file))))))
(with-demoted-errors "Export error: %S"
(org-texinfo-export-to-texinfo)
(message "Exporting %s...done" file)))))))
(unless buffer
(kill-buffer (current-buffer))))))))))

Expand Down

0 comments on commit 13caf51

Please sign in to comment.