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

CLI: exit process with correct error code #303

Open
aledeg opened this issue Oct 14, 2016 · 3 comments
Open

CLI: exit process with correct error code #303

aledeg opened this issue Oct 14, 2016 · 3 comments

Comments

@aledeg
Copy link

aledeg commented Oct 14, 2016

I've seen that there is already a resolved ticket (#38) about that issue. But it seems that when I have warnings during the generation, the return code is 0.

Here is the launched command:

aglio --theme flatly --theme-template index.jade --theme-full-width true -i book.apib -o book.html

Am I missing something?

@aledeg
Copy link
Author

aledeg commented Oct 18, 2016

If I redirect stderr to a file, I get all errors and warnings in that file. That means that there is an unconsitency between the output and the exit code.
As a workaround, I output every error and warning messages to a file and test the file.

@jackbentley
Copy link

A warning message isn't an error, though? So it shouldn't affect the exit code? A non-zero exit code would be considered an error.

@aledeg
Copy link
Author

aledeg commented Mar 6, 2017

I agree that a warning is not an error, but there should be something to differentiate a process that works flawlessly and one with warnings.
Maybe a switch to convert warnings to errors.

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