Fixed error handling in CLI for parser.coffee