Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF: --fail-if-warnings fails to fail when resource not found #4455

Closed
sylsau opened this issue Mar 15, 2018 · 2 comments
Closed

PDF: --fail-if-warnings fails to fail when resource not found #4455

sylsau opened this issue Mar 15, 2018 · 2 comments

Comments

@sylsau
Copy link

sylsau commented Mar 15, 2018

$ pandoc --version
pandoc 2.1.2
Compiled with pandoc-types 1.17.3.1, texmath 0.10.1.1, skylighting 0.6

Source

---
title: "Misère du Féminisme"
author: revue La Guerre Sociale (Dominique Karamazov)
---

« Ras le viol », « Terre des hommes, viol de nuit», « La drague, c'est le viol » ... Les slogans féministes prennent le relais des gros titres de la presse à sensation. Un nouveau cheval de bataille a suceédé à l'avortement. Inscriptions murales, manifestations, batailles judiciaires, débats, procès et ripostes sauvages se développent.

![L'anti-viol, Cosmopolitan - juillet 1977](./anti-viol.jpg)

Commands used

Ignore --fail-if-warnings (PDF)

$ pandoc --fail-if-warnings -s in.md -o out.pdf`

[WARNING] Could not fetch resource './anti-viol.jpg': replacing image with description

(success)

Does not ignore --fail-if-warnings (EPUB)

$ pandoc --fail-if-warnings -s in.md -o out.epub`

[WARNING] Could not fetch resource './anti-viol.jpg': PandocResourceNotFound "./anti-viol.jpg"
Failing because there were warnings.

(it returns 3)

@jgm
Copy link
Owner

jgm commented Mar 15, 2018 via email

@jgm
Copy link
Owner

jgm commented Mar 1, 2019

#5343 was a duplicate of this issue.

It has now been fixed.

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

No branches or pull requests

2 participants