[Rt-commit] r5933 - in rt/branches/3.7-EXPERIMENTAL: . lib/RT/Shredder

ruz at bestpractical.com ruz at bestpractical.com
Thu Sep 14 17:41:57 EDT 2006


Author: ruz
Date: Thu Sep 14 17:41:56 2006
New Revision: 5933

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Shredder.pm
   rt/branches/3.7-EXPERIMENTAL/lib/RT/Shredder/Exceptions.pm

Log:
 r3737 at cubic-pc:  cubic | 2006-09-15 01:47:20 +0400
 ::Shredder
 * new Informative exception 'NoResolver'


Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Shredder.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Shredder.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Shredder.pm	Thu Sep 14 17:41:56 2006
@@ -395,7 +395,8 @@
     );
 
     unless( @resolvers ) {
-        die "Couldn't find resolver for dependency '". $dep->AsString ."'";
+        warn "Couldn't find resolver for dependency '". $dep->AsString ."'";
+        RT::Shredder::Exception::Info->throw('NoResolver');
     }
     $_->(
         Shredder     => $self,

Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Shredder/Exceptions.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Shredder/Exceptions.pm	(original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Shredder/Exceptions.pm	Thu Sep 14 17:41:56 2006
@@ -36,6 +36,12 @@
 message from RT log files and send bug report.
 END
 
+    NoResolver => <<END,
+Object has dependency that could be resolved, but resolver
+wasn't defined. You have to re-read documentation of the
+plugin you're using, for example the 'Users' plugin has
+option 'replace_relations' argument.
+END
 );
 
 sub full_message {


More information about the Rt-commit mailing list