For a more helpful error message, I recommend including contents[0] and slightly different wording.

eg "Please remove fuzzy flags from document.  First fuzzy flag was found on text flow $resId with content $content"