diff --git a/hbs2/Main.hs b/hbs2/Main.hs index aeb24650..d81eb2f4 100644 --- a/hbs2/Main.hs +++ b/hbs2/Main.hs @@ -226,7 +226,8 @@ runCat opts ss = do walk (fromHashRef h) AnnRef h -> do - let lnk = _ $ deserialiseOrFail @AnnotatedHashRef obj + let lnk = either (error . ("Deserialise AnnotatedHashRef: " <>) . show) id $ + deserialiseOrFail @AnnotatedHashRef obj let mbHead = headMay [ h | HashRefMerkle (HashRefObject (HashRef h) _) <- universeBi lnk ]