Do not include full path in exception

This commit is contained in:
Alex P 2022-08-09 11:14:20 +03:00
parent c48fc6c879
commit 4f59956fca

View file

@ -118,7 +118,7 @@ trait ProcessPaymentTrait {
* @return string * @return string
*/ */
protected function format_exception( Throwable $exception ): string { protected function format_exception( Throwable $exception ): string {
$output = $exception->getMessage() . ' ' . $exception->getFile() . ':' . $exception->getLine(); $output = $exception->getMessage() . ' ' . basename( $exception->getFile() ) . ':' . $exception->getLine();
$prev = $exception->getPrevious(); $prev = $exception->getPrevious();
if ( ! $prev ) { if ( ! $prev ) {
return $output; return $output;