Skip to content

Commit 08c88d9

Browse files
committed
improve error message
1 parent dc065ba commit 08c88d9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dictionary/parser.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,10 @@ function verbOnly(tagInside: Parser<unknown>): Parser<VerbForms> {
295295
FutureTense: string;
296296
};
297297
if (conjugations == null) {
298-
throw new ArrayResultError(`no verb conjugation found for "${verb}"`);
298+
throw new ArrayResultError(
299+
`no verb conjugation found for "${verb}". consider providing all ` +
300+
"conjugations instead",
301+
);
299302
}
300303
if (verb !== conjugations.Infinitive) {
301304
throw new ArrayResultError(

0 commit comments

Comments
 (0)