mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Do not include full path in exception
This commit is contained in:
parent
c48fc6c879
commit
4f59956fca
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue