Skip to content

Commit 6e495c2

Browse files
committed
improve error message
1 parent 29cc053 commit 6e495c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/translator/nanpa.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ export function nanpa(
1616
.map((phrase) => {
1717
if (phrase.type !== "noun") {
1818
throw new FilteredError(
19-
`${phrase.type} within "in position" phrase`,
19+
`${phrase.type} within "position X" phrase`,
2020
);
2121
} else if (
2222
(phrase.noun as English.NounPhrase & { type: "simple" })
2323
.preposition.length > 0
2424
) {
25-
throw new FilteredError('preposition within "in position" phrase');
25+
throw new FilteredError('preposition within "position X" phrase');
2626
} else {
2727
return {
2828
type: "simple",

0 commit comments

Comments
 (0)