Skip to content

Keep logs on error if --keep-logs provided - #103

Merged
pkgw merged 2 commits into
tectonic-typesetting:masterfrom
rekka:feat-keep-logs-on-error
Jun 16, 2017
Merged

Keep logs on error if --keep-logs provided#103
pkgw merged 2 commits into
tectonic-typesetting:masterfrom
rekka:feat-keep-logs-on-error

Conversation

@rekka

@rekka rekka commented Jun 15, 2017

Copy link
Copy Markdown
Contributor

This implements what is, I believe, the expected behavior of --keep-logs: Even if the xetex engine errors out, the logs are saved. This matches the tex standard and has at least two uses:

  • Sometimes it is necessary to inspect the logs to understand why an error occurred.

  • Editors, for instance vim with vim-latex, use the logs to locate errors and warnings.

A simple test is also provided.

I basically just extracted the code in run method that saves the outputs, etc., into write_files and added a parameter only_logs.

@pkgw

pkgw commented Jun 16, 2017

Copy link
Copy Markdown
Collaborator

Looks great!

@pkgw
pkgw merged commit b0b77df into tectonic-typesetting:master Jun 16, 2017
@rekka
rekka deleted the feat-keep-logs-on-error branch August 24, 2018 03:58
Mrmaxmeier pushed a commit to Mrmaxmeier/tectonic that referenced this pull request Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants