Skip to content

Commit dc90ced

Browse files
committed
better error message
1 parent 8dc9ac6 commit dc90ced

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/translator/clause.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { nullableAsArray, throwError } from "../../misc/misc.ts";
22
import { IterableResult } from "../compound.ts";
33
import * as TokiPona from "../parser/ast.ts";
44
import * as English from "./ast.ts";
5-
import { FilteredError, TranslationTodoError } from "./error.ts";
5+
import { FilteredError, UntranslatableError } from "./error.ts";
66
import { nanpa } from "./nanpa.ts";
77
import { perspective, quantity } from "./noun.ts";
88
import { multiplePhrases } from "./phrase.ts";
@@ -244,7 +244,7 @@ export function contextClause(
244244
.map((clause) => [clause]);
245245
case "anu":
246246
return IterableResult.errors([
247-
new TranslationTodoError(`${contextClause.type} context clause`),
247+
new UntranslatableError(`"anu la"`, "English clause"),
248248
]);
249249
default:
250250
return IterableResult.concat(

0 commit comments

Comments
 (0)