incubator-alois-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fla...@apache.org
Subject svn commit: r1088572 - /incubator/alois/trunk/prisma/lib/prisma/base_mixin.rb
Date Mon, 04 Apr 2011 11:57:57 GMT
Author: flavio
Date: Mon Apr  4 11:57:57 2011
New Revision: 1088572

URL: http://svn.apache.org/viewvc?rev=1088572&view=rev
Log:
Check if returned origin is a error in base mixin.

Modified:
    incubator/alois/trunk/prisma/lib/prisma/base_mixin.rb

Modified: incubator/alois/trunk/prisma/lib/prisma/base_mixin.rb
URL: http://svn.apache.org/viewvc/incubator/alois/trunk/prisma/lib/prisma/base_mixin.rb?rev=1088572&r1=1088571&r2=1088572&view=diff
==============================================================================
--- incubator/alois/trunk/prisma/lib/prisma/base_mixin.rb (original)
+++ incubator/alois/trunk/prisma/lib/prisma/base_mixin.rb Mon Apr  4 11:57:57 2011
@@ -661,14 +661,14 @@ module BaseMixin
     end
     # Returns a text describing original message (not the object)
     def original_text
-      o = original[0]
+      o = original
       case o
       when String
-	"ALOIS_ERROR: #{$!}"
+	"ALOIS_ERROR: #{o}"
       when NilClass
 	"NO ORIGINAL FOUND"
       else
-	o.msg
+	o[0].msg
       end
     end
     



Mime
View raw message