public logCliErrorWithException ( string $msg, Exception $e ) : void | ||
$msg | string | |
$e | Exception | |
return | void |
public function logCliErrorWithException($msg, $e)
{
$this->write("*** error: {$msg}" . PHP_EOL . PHP_EOL . "This was caused by an unexpected exception " . get_class($e) . PHP_EOL . PHP_EOL . $e->getTraceAsString() . PHP_EOL);
}