tlienart / Xranklin.jl

Experimental repo for a refactoring of Franklin.jl
https://tlienart.github.io/Xranklin.jl
MIT License
40 stars 1 forks source link

error thrown by a hfun should show just show that error and not the rest... #244

Open tlienart opened 1 year ago

tlienart commented 1 year ago

not this kind of stuff:

[ Info: > Full Pass [MD/I] (sequential)
".. $(rp)" = ".. webeasties/2013/friday-link-dump.md"
ERROR: KeyError: key "posts/back-on-the-horse-part2.md" not found
Stacktrace:
  [1] getindex
    @ ./dict.jl:484 [inlined]
  [2] getvarfrom(n::Symbol, rpath::String, d::Nothing; default::Nothing)
    @ Main.__FRANKLIN_1298556.XranklinCore ./string:37
  [3] getvarfrom (repeats 2 times)
    @ ./string:31 [inlined]
  [4] (::Main.__FRANKLIN_1298556.Utils.var"#6#10")(rp::String)
    @ Main.__FRANKLIN_1298556.Utils ./none:0
  [5] iterate
    @ ./generator.jl:47 [inlined]
  [6] collect(itr::Base.Generator{Vector{String}, Main.__FRANKLIN_1298556.Utils.var"#6#10"})
    @ Base ./array.jl:782
  [7] get_posts(t::String, basepath::String)
    @ Main.__FRANKLIN_1298556.Utils ./string:139
  [8] get_posts
    @ ./string:132 [inlined]
  [9] hfun_list_posts(t::String)
    @ Main.__FRANKLIN_1298556.Utils ./string:114
 [10] hfun_taglist()
    @ Main.__FRANKLIN_1298556.Utils ./string:101