Making error message consistent