Change error message to be distinct

This commit is contained in:
Koen Vlaswinkel
2023-11-01 15:49:01 +01:00
parent 98b0850f68
commit 5f25fe42c3

View File

@@ -28,7 +28,7 @@ export function getModelsAsDataLanguageModel<
): NonNullable<ModelsAsDataLanguagePredicates[T]> {
const definition = getModelsAsDataLanguage(language).predicates[model];
if (!definition) {
throw new Error(`No models-as-data definition for ${model}`);
throw new Error(`No models-as-data predicate for ${model}`);
}
return definition;
}