lib/qcmd/parser.rb in qcmd-0.1.13 vs lib/qcmd/parser.rb in qcmd-0.1.14
- old
+ new
@@ -10,12 +10,11 @@
def parse(string)
# make sure string is wrapped in parens to make the parser happy
begin
parser.parse_string "#{ string }"
- rescue => ex
- puts "parser FAILED WITH EXCEPTION: #{ ex.message }"
- raise
+ rescue ParseException => ex
+ puts "Command parser failed with exception: #{ ex.message }"
end
end
def generate(sexp)
parser.to_sexp(sexp)