[Bps-public-commit] r14095 - in Prophet/trunk: .

sartak at bestpractical.com sartak at bestpractical.com
Mon Jul 14 18:07:29 EDT 2008


Author: sartak
Date: Mon Jul 14 18:07:28 2008
New Revision: 14095

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/lib/Prophet/Replica.pm

Log:
 r64284 at onn:  sartak | 2008-07-14 18:07:23 -0400
 List what replica types we CAN handle (I'm all about enabling discovery you see)


Modified: Prophet/trunk/lib/Prophet/Replica.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/Replica.pm	(original)
+++ Prophet/trunk/lib/Prophet/Replica.pm	Mon Jul 14 18:07:28 2008
@@ -74,7 +74,7 @@
     my ($new_class, $scheme, $url) = $class->_url_to_replica_class($args{url});
 
     if (!$new_class) {
-        $class->log_fatal("$scheme isn't a replica type I know how to handle. (The Replica URL given was $args{url})");
+        $class->log_fatal("$scheme isn't a replica type I know how to handle. (The Replica URL given was $args{url}). I can handle the following replica types: " . join(', ', sort keys %$REPLICA_TYPE_MAP) . ", and possibly more)");
     }
 
     return $orig->($class, %args, url => $args{url}) if $class eq $new_class;



More information about the Bps-public-commit mailing list