Bad error message if a todo!()
is encountered in view
function.
#59
Labels
bug
Something isn't working
todo!()
is encountered in view
function.
#59
Describe the bug
If you have a
todo!()
in your view function you'll see something like this output:Note the error message about unwrapping on a
PoisonError
. A user may not see the first line stating that a panic occurred due tonot yet implemented
and go on a scavenger hunt trying to figure out what's going on with thisPoisonError
.To Reproduce
view
add atodo!()
cargo run
Expected behavior
The user should either only see an error message about
not yet implemented
or there should be some other informative error message indicating what went wrong.System info (please complete the following information):
All
Additional context
N/A
The text was updated successfully, but these errors were encountered: