fix(error): Correct error message composition (closes #4992)