Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better description of config syntax error #5985

Merged
merged 1 commit into from
Jul 31, 2024

Commits on Jul 11, 2024

  1. Better description of config syntax error

    When there is an issue with syntax in avocado config file avocado won't
    provide enough information for the user to understand the problem. This
    commit will improve the error message by specifying the wrong value and
    the reason for syntax error.
    
    before this commit:
    ```
    SyntaxError: Syntax error in config file ./pom_config, please check the
    value /build/avocado/data/cache
    ```
    
    after this commit:
    ```
    ValueError: /build/avocado/data/cache could not be converted into a list
    During handling of the above exception, another exception occurred:
    
    SyntaxError: Syntax error in config file ./pom_config, please check the
    value /build/avocado/data/cache
    ```
    
    Reference: avocado-framework#5906
    Signed-off-by: Jan Richter <[email protected]>
    richtja committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    6f39aa6 View commit details
    Browse the repository at this point in the history