api: update error codes in api core functions
This commit is contained in:
parent
a4d57f175e
commit
1f3509db07
4 changed files with 15 additions and 18 deletions
|
@ -39,7 +39,7 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disab
|
|||
switch (action) {
|
||||
default:
|
||||
return createResponse("error", {
|
||||
code: "ErrorEmptyDownload"
|
||||
code: "error.api.fetch.empty"
|
||||
});
|
||||
|
||||
case "photo":
|
||||
|
@ -149,7 +149,7 @@ export default function({ r, host, audioFormat, isAudioOnly, isAudioMuted, disab
|
|||
case "audio":
|
||||
if (audioIgnore.includes(host) || (host === "reddit" && r.typeId === "redirect")) {
|
||||
return createResponse("error", {
|
||||
code: "ErrorEmptyDownload"
|
||||
code: "error.api.fetch.empty"
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue