mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #779 from woocommerce/pcp-864-fix-exception-note
Do not include full path in exception
This commit is contained in:
commit
988ca57cf4
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