Like described in issue #8972, when trying to update the profile with an email already in use, the error message only provides the error: Failed to update profile. With this change, the message will describe the exactly error occurred in the process.