Fix raw html error reporting