Skip to content

Commit

Permalink
Include error message for unknown response.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Jul 24, 2023
1 parent 70cb7a8 commit 00d8ee8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ private function send_request( $version, $namespace, $method, $output, $paramete
);

if ( is_wp_error( $response ) ) {
throw new \Exception( __( 'Unknown response from Pay.nl.', 'pronamic_ideal' ) );
throw new \Exception(
\sprintf(
__( 'Unknown response from Pay.nl: "%s".', 'pronamic_ideal' ),

Check failure on line 93 in src/Client.php

View workflow job for this annotation

GitHub Actions / phpcs / phpcs

A gettext call containing placeholders was found, but was not accompanied by a "translators:" comment on the line above to clarify the meaning of the placeholders.
$response->get_error_message()
)
);
}

// Body.
Expand Down

0 comments on commit 00d8ee8

Please sign in to comment.