Commit de5d16f
committed
Better error messages for bad SVG lookups
Previously if a svg directive didn't find an icon the build would fail
with a `java.util.NoSuchElementException` but without any indication of
what file the bad lookup happen in. By using an Either and Laika's
Directive's `evalMap` we get nicer build errors with file names and
locations.1 parent 8b99777 commit de5d16f
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| |||
0 commit comments