debug for errorMessage