Customize editing of customer



We're using CMS & Commerce with external Single Sign-On provider (OIDC). We would like administrators to be able to modify customer data via Commerce Manager, and make these changes reflect in login provider. To achieve that, we implemented custom IPlugin that updates customer data in login provider on CustomerContact edit.
However, there might be situations when customer cannot be modified (for example, due to invalid data entered by administrator). 
Throwing exception from IPlugin reverts the change, but causes whole web request fail - so the administrator see general 500 error page, which is unwanted. Are we able to fail an action "gracefully" from that plugin, or somehow cancel it in a way that administrator would see what happened (or - at best - which field caused an error)?  

Epi 11.18.X, Commerce 13.14.X

Kind regards

Sep 16, 2020 13:11
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.