As the save methods are currently architected, errors are not returned and are therefore unusable outside of the normal save method. It would be useful to have a way of retrieving these errors for use outside of this default setup.
For example, when working on the force-2fa functionality I have a standalone takeover view that uses AJAX to submit the settings and re-load to a normal view once submitted. the problem is that I have no useful information coming back from the save methods so I have to re-load the page whether saving was successful or not which is very confusing from a user's perspective.
As the save methods are currently architected, errors are not returned and are therefore unusable outside of the normal save method. It would be useful to have a way of retrieving these errors for use outside of this default setup.
For example, when working on the force-2fa functionality I have a standalone takeover view that uses AJAX to submit the settings and re-load to a normal view once submitted. the problem is that I have no useful information coming back from the save methods so I have to re-load the page whether saving was successful or not which is very confusing from a user's perspective.