$ bundle exec exe/hamlit compile -c invalid-haml-syntax.haml
bundler: failed to load command: exe/hamlit (exe/hamlit)
(haml):4: Inconsistent indentation: 1 space used for indentation, but the rest of the document was indented using 2 spaces. (Hamlit::HamlSyntaxError)
...
$ echo $?
1
( This Pull Request has been continued from https://github.com/k0kubun/hamlit/pull/188#issuecomment-1028590147 )
raise the error in
Hamlit::Parser
whenhamlit compile -c
to check haml error.Before this Pull Request
After this Pull Request