set error reporting