Skip to content

Commit

Permalink
blocks are nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 16, 2016
1 parent 6438593 commit c3e2ab6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion t/mojo/loader.t
Expand Up @@ -161,7 +161,7 @@ is load_class('Mojolicious::Lite'), undef, 'loaded successfully';
}

# Hide DATA usage from error messages
eval "die 'whatever'";
eval { die 'whatever' };
unlike $@, qr/DATA/, 'DATA has been hidden';

done_testing();
2 changes: 1 addition & 1 deletion t/mojo/util.t
Expand Up @@ -501,7 +501,7 @@ is term_escape("\x00\x09\x0b\x1f\x7f\x80\x9f"), '\x00\x09\x0b\x1f\x7f\x80\x9f',
'right result';

# Hide DATA usage from error messages
eval "die 'whatever'";
eval { die 'whatever' };
unlike $@, qr/DATA/, 'DATA has been hidden';

done_testing();

0 comments on commit c3e2ab6

Please sign in to comment.