ruby: fixed config assertion failure
authorDerek Hower <drh5@cs.wisc.edu>
Tue, 1 Sep 2009 14:35:48 +0000 (09:35 -0500)
committerDerek Hower <drh5@cs.wisc.edu>
Tue, 1 Sep 2009 14:35:48 +0000 (09:35 -0500)
src/mem/ruby/config/cfg.rb

index 445bb488537318d6ec27150c645989957e8d8828..16d658a4c381fda46d8a4babb441d88967004df2 100644 (file)
@@ -11,7 +11,7 @@ end
 
 def assert(condition,message)
   unless condition
-    raise AssertionFailure, "\n\nAssertion failed: \n\n   #{message}\n\n"
+    raise AssertionFailure.new(message), "\n\nAssertion failed: \n\n   #{message}\n\n"
   end
 end