Skip to content

Commit

Permalink
Improve validation message
Browse files Browse the repository at this point in the history
  • Loading branch information
endroid committed Oct 4, 2022
1 parent 3668147 commit 9d9c765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public function build(): ResultInterface
$writer = $this->options['writer'];

if ($this->options['validateResult'] && !$writer instanceof ValidatingWriterInterface) {
throw new \Exception('Unable to validate result with '.get_class($writer));
throw new \Exception('Unable to validate the result: '.get_class($writer).' does not support validation');
}

/** @var QrCode $qrCode */
Expand Down

0 comments on commit 9d9c765

Please sign in to comment.