Replies: 1 comment 3 replies
-
So the answer is dependent on your code If you are using the default error type, |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been trying to figure out how to extract the error returned by
try_map
. I have a case where there are several possible errors (all in an enum), and I want to be able to print a different error message depending on which error occurred. However, when I look at the error result from the parser, there's no trace of the error that was returned fromtry_map
.I've looked at all the examples, and searched on the web (for hours), but all of the examples I have found don't appear to actually use the error result. There are several examples that show detecting a number conversion error, but they don't appear to actually use the error result from try_map, they just detect that an error happened.
Beta Was this translation helpful? Give feedback.
All reactions