ruby: better configuration assert message
authorDerek Hower <drh5@cs.wisc.edu>
Thu, 6 Aug 2009 06:15:23 +0000 (01:15 -0500)
committerDerek Hower <drh5@cs.wisc.edu>
Thu, 6 Aug 2009 06:15:23 +0000 (01:15 -0500)
src/mem/ruby/config/cfg.rb

index ffc36dd67f0d5f5a04957d56bc6e6785e48c83d8..82f0d27766488a8162834e2b26bcdefdfc1b1902 100644 (file)
@@ -11,7 +11,7 @@ end
 
 def assert(condition,message)
   unless condition
-    raise AssertionFailure, "Assertion failed: #{message}"
+    raise AssertionFailure, "\n\nAssertion failed: \n\n   #{message}\n\n"
   end
 end