Write prettier exception messages

This commit is contained in:
Joshua Ramon Enslin 2023-10-16 22:39:46 +02:00
parent 1d1a690e0f
commit d9f3f875e0
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -102,7 +102,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
'WIKIPEDIA' => self::wikidata,
'wikipedia' => self::wikipedia,
'Wikipedia' => self::wikipedia,
default => throw new MDpageParameterNotFromListException("Unknown noda repository: '" . $input . "'"),
default => throw new MDpageParameterNotFromListException("Unknown norm data repository: '" . $input . "'"),
};
}