refactor: provide more descriptive panic messages#968
refactor: provide more descriptive panic messages#968rvolosatovs wants to merge 2 commits intobytecodealliance:mainfrom
Conversation
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
80f144c to
24f3dd0
Compare
…ssage Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
|
Thanks! There's quite a lot of panicking statements throughout Given all that I think the best thing to do would either be:
Does that sound reasonable? |
|
If no one has yet looked at fixing #967, I should have some time soon to dive into it after I get a bunch of feature work on cargo component in. |
|
I believe this was addressed in #974 so I'm going to close this. Thanks for the PR though! |
Refs #967
From:
To:
While the message is still pretty cryptic, at least the domain the panic originates from is somewhat clear
Note, that the second panic occurs when constructing metadata of a component importing
wasi-httpashttp(e.g. in https://github.com/bytecodealliance/wit-bindgen test cases)