Unifies error messages format