diff options
author | bptato <nincsnevem662@gmail.com> | 2024-06-20 20:04:14 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-06-20 20:06:45 +0200 |
commit | 2ab1e53b4bc15af3319994fdb25bb739b4b8e6db (patch) | |
tree | 22e32f721c783f3ee934498ec95b58f5a117ac67 /src/html/dom.nim | |
parent | 60dc37269cd2dc8cdf23d9f77680f6af9490032f (diff) | |
download | chawan-2ab1e53b4bc15af3319994fdb25bb739b4b8e6db.tar.gz |
loader: better error handling
we no longer crash on broken codecs. yay
Diffstat (limited to 'src/html/dom.nim')
-rw-r--r-- | src/html/dom.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/dom.nim b/src/html/dom.nim index 265810ce..be297d70 100644 --- a/src/html/dom.nim +++ b/src/html/dom.nim @@ -2936,7 +2936,7 @@ proc loadResource(window: Window; image: HTMLImageElement) = response.unregisterFun() response.body.sclose() if "X-Image-Dimensions" notin response.headers.table: - window.console.error("X-Image-Dimensions missing") + window.console.error("X-Image-Dimensions missing in", $response.url) return let dims = response.headers.table["X-Image-Dimensions"][0] let width = parseUInt64(dims.until('x'), allowSign = false) |