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

How to use the -failfast2 option to not generate the image on errors? #72

Open
evandrocoan opened this issue Mar 8, 2018 · 1 comment

Comments

@evandrocoan
Copy link

PlantUml has a command line option http://plantuml.com/command-line -failfast2 which:

There is also a -failfast2 flag that does a first checking pass. If some error is present, no diagram will be generated at all. In case of error, -failfast2 runs even faster than -failfast, which may be useful for huge project.

How to enabled it on the PlantUml-server

@evandrocoan
Copy link
Author

I handled to overcome this by checking the HTTP header and looking for the X-PlantUML-Diagram-Error string. If present, then there was an error, and I just discard the image:

  1. evandrocoan/plantumlconnection@37b5142 Improved the error handling on diagram_plugin.py
  2. evandrocoan/PlantUmlDiagrams@bba59e5 Improved the error handling on diagram_plugin.py

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

1 participant