Skip to content

Commit 852374b

Browse files
committed
clarify error message (phiresky#8)
1 parent 6d0d963 commit 852374b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lazyFile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ export class LazyUint8Array {
175175

176176
if (!hasByteServing) {
177177
const msg =
178-
"server does not support byte serving (`Accept-Ranges: bytes` header missing), or your database is hosted on CORS and the server doesn't mark the accept-ranges header as exposed";
179-
console.error(msg, "seen response headers", xhr.getAllResponseHeaders());
178+
"server either does not support byte serving or does not advertise it (`Accept-Ranges: bytes` header missing), or your database is hosted on CORS and the server doesn't mark the accept-ranges header as exposed.";
179+
console.warn(msg, "seen response headers:", xhr.getAllResponseHeaders());
180180
// throw Error(msg);
181181
}
182182

0 commit comments

Comments
 (0)