tweak error reporting.