Skip to content

Empty configuration file raises AssertionError #131

@srak289

Description

@srak289

Pointing carthage-runner to empty config.yml raises

Traceback (most recent call last):
  File "/root/carthage/bin/carthage-runner", line 192, in <module>
    args, unknown = carthage.utils.carthage_main_setup(parser, unknown_ok=True)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/carthage/carthage/utils.py", line 285, in carthage_main_setup
    config.load_yaml(f, ignore_import_errors=ignore_import_errors)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/carthage/carthage/config/layout.py", line 94, in load_yaml
    assert isinstance(d, dict)
           ~~~~~~~~~~^^^^^^^^^
AssertionError

This could have a clearer message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions