Skip to content

Enhance config file validation and management #22

@BigOokie

Description

@BigOokie

Describe the bug
Currently the app is not very resilient to incorrect data within the config.toml configuration file.

To Reproduce
Steps to reproduce the behavior:

  1. Edit the .wingocmmander/config.toml file.
  2. Alter any string type parameter (i.e. apikiey, admin) to not be enclosed in " " (double quotes)
  3. Save the changes
  4. Run Wing Commander (.wcbot)
  5. The error will be reported.

Expected behavior
Fine for an error to still be reported, but preferably it will be one that allows the user to self-help. The error message should provide sufficient detail that the user knows what the problem is and has the ability to fix it without requiring assistance.

While this may not be possible in all cases - its what we should be targeting.

Screenshots
NA

Additional context
Low priority. Fix when we can

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestlow priorityWill get to it when we can

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions