# HG changeset patch # User Vincent Tondellier # Date 1423401255 -3600 # Node ID a3e856c4d1611a4a913b4d7b778a323630f13087 # Parent cebbfcd7deffa56384efdc1073c7f96349afdca2 Fix frame trust warnings with the latest Mojolicious diff -r cebbfcd7deff -r a3e856c4d161 lib/CrashTest/StackFilters/FrameTrust.pm --- a/lib/CrashTest/StackFilters/FrameTrust.pm Mon Jan 26 00:48:15 2015 +0100 +++ b/lib/CrashTest/StackFilters/FrameTrust.pm Sun Feb 08 14:14:15 2015 +0100 @@ -24,6 +24,10 @@ # Search for inline templates in this class too push @{$self->app->renderer->classes}, __PACKAGE__; + # bug in Mojolicious ? + # force refresh of the template cache + $self->app->renderer->_warmup; + return $self; } @@ -48,7 +52,7 @@ if(!defined($frame->module) && $frame->offset ne "0x0") { $frame->module_name( - $c->render( + $c->render_to_string( template => "stackfilters/frame_trust/warning", partial => 1, content_text => $frame->module_name, popup_text => "No module loaded at this address" ) @@ -57,7 +61,7 @@ if($frame->missing_symbols) { $frame->module_name( - $c->render( + $c->render_to_string( template => "stackfilters/frame_trust/warning", partial => 1, content_text => $frame->module_name, popup_text => "Missing symbols" ) @@ -66,7 +70,7 @@ if(defined($frame->trust) && $frame->trust eq "scan") { $frame->function_name( - $c->render( + $c->render_to_string( template => "stackfilters/frame_trust/warning", partial => 1, content_text => $frame->function_name, popup_text => "Imprecise stackwalking" )