Skip to content

Commit

Permalink
removed MOJO_EXCEPTION_VERBOSE environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 7, 2013
1 parent 36c543c commit 911fcc8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

4.0 2013-05-07
4.0 2013-05-08
- Code name "Top Hat", this is a major release.
- Added is_empty method to Mojo::Transaction::HTTP.
- Added close_gracefully method to Mojo::IOLoop::Stream.
Expand Down
5 changes: 2 additions & 3 deletions lib/Mojo/Exception.pm
Expand Up @@ -9,7 +9,7 @@ use Scalar::Util 'blessed';

has [qw(frames line lines_before lines_after)] => sub { [] };
has message => 'Exception!';
has verbose => sub { $ENV{MOJO_EXCEPTION_VERBOSE} || 0 };
has 'verbose';

sub new {
my $self = shift->SUPER::new;
Expand Down Expand Up @@ -175,8 +175,7 @@ Exception message.
my $verbose = $e->verbose;
$e = $e->verbose(1);
Activate verbose rendering, defaults to the value of the
MOJO_EXCEPTION_VERBOSE environment variable or C<0>.
Render exception with context.
=head1 METHODS
Expand Down
1 change: 1 addition & 0 deletions t/mojolicious/json_config_lite_app.t
Expand Up @@ -2,6 +2,7 @@ use Mojo::Base -strict;

# Disable IPv6 and libev
BEGIN {
$ENV{MOJO_MODE} = 'development';
$ENV{MOJO_NO_IPV6} = 1;
$ENV{MOJO_REACTOR} = 'Mojo::Reactor::Poll';
}
Expand Down

0 comments on commit 911fcc8

Please sign in to comment.