(
{ data, path }: ArkIssue,
config: ResolvedConfig
)
| 740 | |
| 741 | /** an issue errors "none" added, written in en as saying its data is invalid */ |
| 742 | export const invalidError = ( |
| 743 | { data, path }: ArkIssue, |
| 744 | config: ResolvedConfig |
| 745 | ): ArkError => { |
| 746 | const error = errorOfContext( |
| 747 | { code: "predicate", ...invalidInput(), data } as never, |
| 748 | path, |
| 749 | config |
| 750 | ) |
| 751 | writeError(error, config, renderer?.en ?? config.locale) |
| 752 | return error |
| 753 | } |
| 754 | |
| 755 | const errorOfContext = ( |
| 756 | input: ArkErrorContextInput, |
no test coverage detected