Skip to content

Commit

Permalink
Wrapped text handler in command line check.
Browse files Browse the repository at this point in the history
See #7
  • Loading branch information
Rarst committed Dec 18, 2018
1 parent 7fb6793 commit 6ff8111
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion php/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@ public function __construct( $values = array() ) {
$run->pushHandler( $plugin['handler.pretty'] );
$run->pushHandler( $plugin['handler.json'] );
$run->pushHandler( $plugin['handler.rest'] );
$run->pushHandler( $plugin['handler.text'] );

if ( \Whoops\Util\Misc::isCommandLine() ) {
$run->pushHandler( $plugin['handler.text'] );
}

return $run;
};
Expand Down

0 comments on commit 6ff8111

Please sign in to comment.