Update ts/lib/generated/post.ts

Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
This commit is contained in:
medProgAyat 2025-11-01 22:12:52 +03:30 committed by GitHub
parent d9190f9abd
commit 3e63ff34b0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,7 +43,7 @@ async function postProtoInner(url: string, body: Uint8Array): Promise<Uint8Array
} catch {
// 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(
process.env.NODE_ENV === "production"
? `${msg}`