Improving error specificity: ParaLocked
instead of BadOrigin
in ensure_root_para_or_owner
#6745
Open
2 tasks done
Labels
I2-bug
The node fails to follow expected behavior.
I10-unconfirmed
Issue might be valid, but it's not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
While attempting to deregister a parachain using the manager account, I encountered a
BadOrigin
error. Upon investigation, the issue was that the parachain was locked, and aParaLocked
error would have provided more clarity.It seems that
BadOrigin
fromensure_parachain
might be overriding other contextually relevant errors here, such asParaLocked
. Is this the intended behavior? If not, I can propose a fix to avoid this error overriding and improve the user experience.Steps to reproduce
BadOrigin
error.The text was updated successfully, but these errors were encountered: