diff --git a/CHANGELOG.md b/CHANGELOG.md index f647f30..35287e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Versioning](https://semver.org/spec/v2.0.0.html). ### Changed +- Remove CPR from exception - Added more recipient field types - Fixed error logging. diff --git a/src/Helper/WebformHelperSF1601.php b/src/Helper/WebformHelperSF1601.php index 2847801..5ef7c90 100644 --- a/src/Helper/WebformHelperSF1601.php +++ b/src/Helper/WebformHelperSF1601.php @@ -162,7 +162,7 @@ public function sendDigitalPost(WebformSubmissionInterface $submission, array $h $cprServiceResult = $this->cprService->search($recipientIdentifier); } catch (ServiceException $serviceException) { - throw new RuntimeException(sprintf('Cannot validate recepient identifier (%s:%s)', $recipientIdentifierType, $recipientIdentifier)); + throw new RuntimeException('Cannot validate recepient identifier'); } $senderSettings = $this->settings->getSender();