Skip to content

No warning for incorrect config dictionary #37

@jwaiton

Description

@jwaiton

As noticed by jgrocott, if you try to run MULE with a nonexistent config file, the error is obtuse:

Traceback (most recent call last):
  File "/home/e78368jw/Documents/MULE/bin/mule", line 49, in <module>
    pack(args.config)
  File "/home/e78368jw/Documents/MULE/packs/proc/proc.py", line 21, in proc
    match conf_dict['process']:
          ~~~~~~~~~^^^^^^^^^^^
KeyError: 'process'

There should be a catch in the binary if the config file isn't found.

UPDATE: 03/11/2025

This error is also caused by the 'process' key being input incorrectly, although I expect this issue to go beyond that specific key in the config being incorrect.

I think the way forward is to write tests inputting incorrect config parameters and ensuring the output is as expected (legible error, warning of the specific incorrect config parameter).

Ian has been graced with this task. 😸

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions