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

feat: improve configuration file error handling #1341

Merged

Conversation

ThomasFrans
Copy link
Contributor

@ThomasFrans ThomasFrans commented Nov 28, 2023

Cleans up the error messages generated when errors are encountered in the configuration file. Instead of showing the raw error message, give clear information about the problem.

Describe your changes

  • Print a nice error message when loading the initial configuration file or reloading it encounters an error

Error when starting ncspot

image

Error when reloading inside ncspot

image

Issue ticket number and link

#1336

Checklist before requesting a review

  • Documentation was updated (i.e. due to changes in keybindings, commands, etc.)
  • Changelog was updated with relevant user-facing changes (eg. not dependency updates,
    not performance improvements, etc.)

closes #1336

Cleans up the error messages generated when errors are encountered in
the configuration file. Instead of showing the raw error message, give
clear information about the problem.
@hrkfdn hrkfdn merged commit e037389 into hrkfdn:main Nov 29, 2023
5 checks passed
@hrkfdn
Copy link
Owner

hrkfdn commented Nov 29, 2023

Thanks, looks good to me!

@ThomasFrans ThomasFrans deleted the improved-configuration-error-handling branch November 29, 2023 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot start ncspot
2 participants