Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Ref

Manav Rathi73b78916de4e
diff --git a/web/packages/next/http.ts b/web/packages/next/http.ts
index e77c6e57f8..8ad2674298 100644
--- a/web/packages/next/http.ts
+++ b/web/packages/next/http.ts
@@ -30,6 +30,8 @@ export class HTTPError extends Error {
constructor(url: string, res: Response) {
super(`Failed to fetch ${url}: HTTP ${res.status}`);
+ // Cargo culted from
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#custom_error_types
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (Error.captureStackTrace) Error.captureStackTrace(this, HTTPError);