Resolve RT #57975: "Exception caught:" prefixes on "re-thrown" exceptions have been...
[gitmo/Mouse.git] / xs-src / MouseUtil.xs
index 925d3d4..94000f5 100644 (file)
@@ -161,7 +161,8 @@ mouse_call_sv_safe(pTHX_ SV* const sv, I32 const flags) {
         if(sv_true(ERRSV)){
             SV* const err = sv_mortalcopy(ERRSV);
             LEAVE;
-            croak("Exception caught: %"SVf, err); /* rethrow */
+            sv_setsv(ERRSV, err);
+            croak(NULL); /* rethrow */
         }
 
         LEAVE;