api/core: fix link parsing error handling

This commit is contained in:
wukko
2024-08-24 16:13:42 +06:00
parent cc05833c6a
commit 7041d61d80
3 changed files with 20 additions and 7 deletions

View File

@@ -56,7 +56,7 @@ export default async function(host, patternMatch, obj) {
}
if (!(testers[host](patternMatch))) {
return createResponse("error", {
code: "error.api.link.invalid",
code: "error.api.link.unsupported",
context: {
service: host
}