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

selinux: Fix error reporting #18670

Merged
merged 1 commit into from
Apr 20, 2023
Merged

Commits on Apr 19, 2023

  1. selinux: Fix error reporting

    Exception objects are not directly printable, so trying to render it in
    an Alert or with `console.warn()` just results in an empty string. That
    makes debugging really hard, as there is no corresponding entry in the
    journal either.
    
    Use `.toString()` on the exception to render them properly. Also show
    the actual exception text in the Alert in the UI. Still keep the
    console.warn()s, so that we can do naughty matching on them.
    
    While at it, eliminate the unnecessary Promise wrappers, and use chaining.
    martinpitt committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    a9ad7eb View commit details
    Browse the repository at this point in the history