mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
Update ts/lib/generated/post.ts
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
This commit is contained in:
parent
d9190f9abd
commit
3e63ff34b0
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ async function postProtoInner(url: string, body: Uint8Array): Promise<Uint8Array
|
||||||
} catch {
|
} catch {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
// it is ugly to show internall server client status to user, we should just show error's to user
|
// hide HTTP status in production builds
|
||||||
throw new Error(
|
throw new Error(
|
||||||
process.env.NODE_ENV === "production"
|
process.env.NODE_ENV === "production"
|
||||||
? `${msg}`
|
? `${msg}`
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue