improved err snippet
improved err snippet