Our plugin interface uses anyhow. Any error that is returend by handle is treated as a plugin internal error, which is surfaced as a 401. In many cases, 401 doesn't match the error that was actually encountered. For example, we get a 401 if a resource is not found.
Maybe we should update the plugin interface to use thiserror so that we can better distinguish between difference cases.
Our plugin interface uses anyhow. Any error that is returend by
handleis treated as a plugin internal error, which is surfaced as a 401. In many cases, 401 doesn't match the error that was actually encountered. For example, we get a 401 if a resource is not found.Maybe we should update the plugin interface to use thiserror so that we can better distinguish between difference cases.