In Communities, I'm getting a generic error message(An error occurred while trying to update the record.Please try again) instead of my custom error message. Can some one please help me, if there is any setting I missed for communities in Salesforce?
Explanation: - I have a trigger on user object where I'm checking user's Email domain should contain account's domain(have a custom field on account object it will have domain value) if not I want to throw an error message. But instead of my custom message, I'm getting generic one. Please suggest a fix to it.
Note: - It's working as excepted if I login directly into salesforce.