lib/nydp/compiler.rb in nydp-0.2.1 vs lib/nydp/compiler.rb in nydp-0.2.2
- old
+ new
@@ -8,10 +8,11 @@
extend Helper
def self.compile expression, bindings
compile_expr expression, bindings
rescue Exception => e
- raise "failed to compile expression #{expression.inspect},\nerror was #{e.message}"
+ new_msg = "failed to compile expression #{expression.inspect},\nerror was #{e.message}"
+ raise $!, new_msg, $!.backtrace
end
def self.compile_expr expression, bindings
if expression.is_a? Nydp::Symbol
SymbolLookup.build expression, bindings