File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -773,16 +773,20 @@ impl<D> ParsedDocument<D> {
773773 }
774774}
775775
776- impl < D , E > TryFrom < ResolvedDocument > for ParsedDocument < D >
776+ impl < D > TryFrom < ResolvedDocument > for ParsedDocument < D >
777777where
778- D : TryFrom < ConvexObject , Error = E > ,
778+ D : TryFrom < ConvexObject , Error = anyhow :: Error > ,
779779{
780- type Error = E ;
780+ type Error = anyhow :: Error ;
781781
782- fn try_from ( document : ResolvedDocument ) -> Result < Self , E > {
782+ fn try_from ( document : ResolvedDocument ) -> anyhow :: Result < Self > {
783783 let id = document. id ;
784784 let creation_time = document. creation_time ;
785- let value: D = document. into_value ( ) . 0 . try_into ( ) ?;
785+ let value: D = document
786+ . into_value ( )
787+ . 0
788+ . try_into ( )
789+ . with_context ( || format ! ( "Failed to parse document id: {id}" ) ) ?;
786790 Ok ( Self {
787791 id,
788792 creation_time,
You can’t perform that action at this time.
0 commit comments