better debug for dyn comp verb issues

This commit is contained in:
adueck 2023-12-18 16:40:09 +04:00
parent c6b4d19abf
commit 014de4007f
2 changed files with 9 additions and 4 deletions

View File

@ -57,12 +57,17 @@ export const dynamicAuxVerbs: Array<{
{ {
entry: { entry: {
ts: 1527813914, ts: 1527813914,
i: 15179,
p: "ورکول", p: "ورکول",
f: "wărkawul", f: "wărkawul",
g: "", g: "warkawul",
e: "to give (to him, her, them, others)", e: "to give (to him/her/it - towards third person)",
r: 4,
c: "v. trans.", c: "v. trans.",
i: 12350, pprtp: "ورکړی",
pprtf: "wărkúRay",
ec: "give,gives,giving,gave,given",
a: 1,
}, },
}, },
{ {

View File

@ -1142,7 +1142,7 @@ function getDynamicAuxVerb(entry: T.DictionaryEntryNoFVars): {
const auxWordResult = dynamicAuxVerbs.find((a) => a.entry.p === auxWord); const auxWordResult = dynamicAuxVerbs.find((a) => a.entry.p === auxWord);
/* istanbul ignore next */ /* istanbul ignore next */
if (!auxWordResult) { if (!auxWordResult) {
throw new Error("unknown auxilary verb for dynamic compound"); throw new Error(`unknown auxilary verb ${auxWord} for dynamic compound`);
} }
return { return {
entry: removeFVarients(auxWordResult.entry), entry: removeFVarients(auxWordResult.entry),