[Bps-public-commit] r13972 - in Prophet/trunk: . lib/Prophet/CLI/Command

sartak at bestpractical.com sartak at bestpractical.com
Thu Jul 10 17:14:49 EDT 2008


Author: sartak
Date: Thu Jul 10 17:14:44 2008
New Revision: 13972

Modified:
   Prophet/trunk/   (props changed)
   Prophet/trunk/lib/Prophet/CLI.pm
   Prophet/trunk/lib/Prophet/CLI/Command/Show.pm

Log:
 r64090 at onn:  sartak | 2008-07-10 17:13:48 -0400
 In _try_to_load_cmd_class, warn if we got a class but it wasn't a subclass of Prophet::CLI::Command (which bit us in "details" command)


Modified: Prophet/trunk/lib/Prophet/CLI.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI.pm	(original)
+++ Prophet/trunk/lib/Prophet/CLI.pm	Thu Jul 10 17:14:44 2008
@@ -135,6 +135,10 @@
     my $class = shift;
     Prophet::App->require_module($class);
     return $class if $class->isa('Prophet::CLI::Command');
+
+    warn "Invalid class $class - not a subclass of Prophet::CLI::Command."
+        if Class::MOP::is_class_loaded($class);
+
     return undef;
 }
 

Modified: Prophet/trunk/lib/Prophet/CLI/Command/Show.pm
==============================================================================
--- Prophet/trunk/lib/Prophet/CLI/Command/Show.pm	(original)
+++ Prophet/trunk/lib/Prophet/CLI/Command/Show.pm	Thu Jul 10 17:14:44 2008
@@ -3,7 +3,6 @@
 extends 'Prophet::CLI::Command';
 with 'Prophet::CLI::RecordCommand';
 
-
 sub run {
     my $self = shift;
 



More information about the Bps-public-commit mailing list