Skip to content

How can I change the behavior of SystemParamValidationError ? #18994

Answered by MrGVSV
gwafotapa asked this question in Q&A
Discussion options

You must be logged in to vote

This was actually discussed recently in #18927.

For now, I think the only way to panic is to unwrap Query::single like you mentioned.

Alternatively, you might be able to copy+paste the Single type and implementation into your own code but remove the non-panicking validation logic.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gwafotapa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants