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
*/
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();
if ( ! $prev ) {
return $output;