Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving error specificity: ParaLocked instead of BadOrigin in ensure_root_para_or_owner #6745

Open
2 tasks done
ipapandinas opened this issue Dec 3, 2024 · 0 comments · May be fixed by #6989
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.

Comments

@ipapandinas
Copy link

Is there an existing issue?

  • I have searched the existing issues

Experiencing problems? Have you tried our Stack Exchange first?

  • This is not a support question.

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 a ParaLocked error would have provided more clarity.

It seems that BadOrigin from ensure_parachain might be overriding other contextually relevant errors here, such as ParaLocked. 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

  1. Deregister a locked parachain using the manager account.
  2. Notice the BadOrigin error.
@ipapandinas ipapandinas added I10-unconfirmed Issue might be valid, but it's not yet known. I2-bug The node fails to follow expected behavior. labels Dec 3, 2024
@bkchr bkchr linked a pull request Dec 23, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I2-bug The node fails to follow expected behavior. I10-unconfirmed Issue might be valid, but it's not yet known.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant