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

Feature request: make the program inform the user when the config file has an error #91

Open
LinuxOnTheDesktop opened this issue Jun 21, 2022 · 2 comments

Comments

@LinuxOnTheDesktop
Copy link

Thank you for your software.

My config file as as follows.

{
	"clocks": [
		{ "name": "Auckland", "timezone": "Pacific/Auckland"}
		{ "name": "Melbourne", "timezone": "Australia/Melbourne" }
	],
	[. . . snip . . .]
}

In that configuration there is a comma missing after { "name": "Auckland", "timezone": "Pacific/Auckland"}. Instead of telling me of the error, the program just reverted to its initial configuration. That left me baffled - until I discovered the missing comma. So, some sort of error message would be useful!

I am using mclocks 0.1.15 (downloaded from MajorGeeks.com), on Windows 10.

@bayashi
Copy link
Owner

bayashi commented Dec 9, 2022

Thank you for your nice feedback. I 100% agree. Could you please use JSON linter in your editor for config file until I improve an error like this?

@LinuxOnTheDesktop
Copy link
Author

Certainly.

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

No branches or pull requests

2 participants