Permalink
Browse files

parse error

  • Loading branch information...
tianyicui committed Nov 14, 2010
1 parent 4a631a2 commit c425ee396b494007b63a0e258c476f5741224113
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/minisql/database.rb
View
@@ -135,7 +135,11 @@ def delete_from table, &block
end
def execute command
- hash = @parser.parse(command).compile
+ begin
+ hash = @parser.parse(command).compile
+ rescue
+ raise "Parse error"
+ end
@catalog.execute hash
@records.execute hash
end

0 comments on commit c425ee3

Please sign in to comment.