fixed spelling of wrapErrorMessage