Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix log

Manav Rathi88eb0d687e8d
diff --git a/web/apps/photos/src/utils/native-stream.ts b/web/apps/photos/src/utils/native-stream.ts
index c1033545bd..75e018b876 100644
--- a/web/apps/photos/src/utils/native-stream.ts
+++ b/web/apps/photos/src/utils/native-stream.ts
@@ -51,10 +51,11 @@ export const readStream = async (
};
const readNumericHeader = (res: Response, key: string) => {
- const value = +res.headers[key];
+ const valueText = res.headers[key];
+ const value = +valueText;
if (isNaN(value))
throw new Error(
- `Expected a numeric ${key} when reading a stream response: ${res}`,
+ `Expected a numeric ${key} when reading a stream response, instead got ${valueText}`,
);
return value;
};