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

Gixy doesn't exit 1 on files with syntax error #51

Closed
moul opened this issue May 19, 2017 · 1 comment
Closed

Gixy doesn't exit 1 on files with syntax error #51

moul opened this issue May 19, 2017 · 1 comment

Comments

@moul
Copy link

moul commented May 19, 2017

This commit introduced a strange behavior:

Current behavior

~/conf # cat default.conf
server
  listen 80;
  server_name _;
  return 404;
}
~/conf # gixy default.conf
[nginx_parser]	ERROR	Failed to parse config "default.conf": char 51 (line:5, col:1)

==================== Results ===================
No issues found.

==================== Summary ===================
Total issues:
    Unspecified: 0
    Low: 0
    Medium: 0
    High: 0
~/conf # echo $?
0

Expected behavior

~/conf # gixy default.conf
[nginx_parser]	ERROR	Failed to parse config "default.conf": char 51 (line:5, col:1)
~/conf # echo $?
1
@moul moul changed the title Gixy doesn't exit on files with syntax error Gixy doesn't exit 1 on files with syntax error May 19, 2017
@buglloc
Copy link
Member

buglloc commented Nov 10, 2017

Sorry for the delay, fixed in Gixy v0.1.8

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