Fix CPAN RT#76179
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine.pm
index daf53d1..4781e45 100644 (file)
@@ -180,6 +180,9 @@ sub finalize_error {
         $title = $name = "$name on Catalyst $Catalyst::VERSION";
         $name  = "<h1>$name</h1>";
 
+        # Don't show context in the dump
+        $c->res->_clear_context;
+
         # Don't show body parser in the dump
         $c->req->_clear_body;