Fixed the forwarding fix :)
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Dispatcher.pm
index bf72cf2..b64ad45 100644 (file)
@@ -135,7 +135,9 @@ qq/Couldn't forward to command "$command". Invalid action or component./;
                     code      => $code,
                     reverse   => "$class->$method",
                     class     => $class,
-                    namespace => $class,
+                    namespace => Catalyst::Utils::class2prefix(
+                        $class, $c->config->{case_sensitive}
+                    ),
                 }
             );
             $result = $action;