diff --git a/includes/class-woocommerce.php b/includes/class-woocommerce.php index 5435c785399..c97a495bbb8 100644 --- a/includes/class-woocommerce.php +++ b/includes/class-woocommerce.php @@ -186,7 +186,8 @@ final class WooCommerce { if ( in_array( $error['type'], array( E_ERROR, E_PARSE, E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR ) ) ) { $logger = wc_get_logger(); $logger->critical( - $error['message'] . PHP_EOL, + /* translators: 1: error message 2: file name and path 3: line number */ + sprintf( __( '%1$s in %2$s on line %3$s', 'woocommerce' ), $error['message'], $error['file'], $error['line'] ) . PHP_EOL, array( 'source' => 'fatal-errors', )