Fix missed error handling of deserializeOrFail

This commit is contained in:
Sergey Ivanov 2023-05-15 16:22:13 +04:00 committed by Dmitry Zuikov
parent ea9e720273
commit 9afeb4d1fa
1 changed files with 2 additions and 1 deletions

View File

@ -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
]