clean error reporting