mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +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
|
* @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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue