public
/
min_svg_cache.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6d80a9
)
Add error handler so we can see what's wrong with a broken SVG file
author
Nick Downing
<nick@ndcode.org>
Thu, 13 Jan 2022 08:10:31 +0000
(19:10 +1100)
committer
Nick Downing
<nick@ndcode.org>
Thu, 13 Jan 2022 08:10:31 +0000
(19:10 +1100)
MinSVGCache.js
patch
|
blob
|
history
diff --git
a/MinSVGCache.js
b/MinSVGCache.js
index
011cbd6
..
414f5e4
100644
(file)
--- a/
MinSVGCache.js
+++ b/
MinSVGCache.js
@@
-89,6
+89,8
@@
MinSVGCache.prototype.build = async function(key, result) {
]
}
)
+ if (render.error)
+ throw new Error(render.error)
return /*await*/ fs_writeFile(
temp_pathname,
render.data,