Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Output sphinx error message on report generation error #2

Open
ArturGajowy opened this issue Jan 2, 2017 · 3 comments
Open

Output sphinx error message on report generation error #2

ArturGajowy opened this issue Jan 2, 2017 · 3 comments

Comments

@ArturGajowy
Copy link

When there are syntax errors in .rst files, an attempt to generate the sphinx report ends with

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 58.042 s
[INFO] Finished at: 2017-01-02T21:48:35+01:00
[INFO] Final Memory: 60M/597M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.airlift.maven.plugins:sphinx-maven-plugin:2.0:generate (default) on project presto-docs: Failed to run the report: Sphinx report generation failed -> [Help 1]
[ERROR] 

Running with -e does not improve on that.

The expected behaviour would be to output the sphinx error message unchanged.

Note: sphinx outputs errors using stderr, at least on my machine.

@electrum
Copy link
Member

electrum commented Sep 8, 2017

I replaced stderr in SphinxRunner with System.setErr() and it never prints anything to stderr, even with -v and -T.

@cryptoe
Copy link

cryptoe commented Feb 19, 2019

@ArturGajowy
I used http://rst.ninjs.org/ to figure out rst issues and when it when the plugin was failing on consistency check, added the new file in the toctree.

@xkwangcn
Copy link

so, how to resolve this at last?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants