microsoft/restler-fuzzer

don't swallow errors in the engine

开放

#220 创建于 2021年5月21日

 (4 条评论) (0 个反应) (1 位负责人)Python (329 个派生)auto 404
enginegood first issue

仓库指标

星标
 (2,929 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

There are many places in the engine, especially on the fuzzing thread, where exceptions are swallowed. We need to make sure exceptions are reported to be able to quickly diagnose errors.

This work item is opened to fix recently observed cases. For example:

    try:
        with open(grammar_path, 'r') as grammar:
            schema_json = json.load(grammar)
    except Exception as err:
        logger.write_to_main(f"Failed to process grammar file: {grammar_path}; {err!s}", print_to_console=True)
        sys.exit(-1)


except ValueError as err:
    logger.write_to_main(f"Failed to parse grammar file for examples: {err!s}", print_to_console=True)
    return False

贡献者指南