mirror of https://github.com/voidlizard/hbs2
Fix missed error handling of deserializeOrFail
This commit is contained in:
parent
ea9e720273
commit
9afeb4d1fa
|
@ -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
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue