Clean up the clone tests, better error message on cloning the wrong things
[gitmo/Mouse.git] / lib / Mouse / Meta / Class.pm
index 8ecb828..96da88f 100644 (file)
@@ -89,7 +89,7 @@ sub clone_object {
     my $instance = shift;
 
     (blessed($instance) && $instance->isa($class->name))
-        || confess "You must pass an instance ($instance) of the metaclass (" . $class->name . ")";
+        || confess "You must pass an instance of the metaclass (" . $class->name . "), not ($instance)";
 
     $class->clone_instance($instance, @_);
 }