Add double quotes around invalid ID in error message given in

MDNodaLink
This commit is contained in:
Joshua Ramon Enslin 2023-07-25 22:31:18 +02:00
parent 8090b95f49
commit 17f1e162f8
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -26,7 +26,7 @@ final class MDNodaLink {
$this->source = $source;
if (($validatedId = $this->source->validateId(trim($id))) === false) {
throw new MDInvalidNodaLink("Invalid noda ID / link: " . $id . " [Repository: " . $this->source->toDbName() . "]");
throw new MDInvalidNodaLink("Invalid noda ID / link: \"" . $id . "\" [Repository: " . $this->source->toDbName() . "]");
}
$this->id = $validatedId;