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

Fail if config file is not found #608

Merged
merged 1 commit into from
May 26, 2017
Merged

Fail if config file is not found #608

merged 1 commit into from
May 26, 2017

Conversation

Unrud
Copy link
Collaborator

@Unrud Unrud commented May 24, 2017

If a configuration file is passed with a command line argument and the file is not found, Radicale shows a warning and continues with the default configuration.
There is no reason for doing this, Radicale should just fail.

Instead, this PR allows passing an empty string like --config "". Radicale will use the default configuration in this case, without trying to load the configuration from the common paths. Previously you had to do specify a path that doesn't exist like --config /does/not/exist, which looks ugly and showed a warning message.

If a configuration file is passed with a command line argument and the file is not found, Radicale shows a warning and continues with the default configuration.
There is no reason for doing this, Radicale should just fail.

Instead, this PR allows passing an empty string like ``--config ""``. Radicale will use the default configuration in this case, without trying to load the configuration from the common paths. Previously you had to do specify a path that doesn't exist like ``--config /does/not/exist``, which looks a bit ugly and showed a warning message.
@Unrud Unrud changed the title Fail if configuration is not found Fail if config file is not found May 24, 2017
Unrud pushed a commit to Unrud/Radicale that referenced this pull request May 24, 2017
@Unrud Unrud mentioned this pull request May 25, 2017
39 tasks
@liZe
Copy link
Member

liZe commented May 26, 2017

There is no reason for doing this, Radicale should just fail.

You're right.

@liZe liZe merged commit 1825c35 into Kozea:master May 26, 2017
@liZe liZe added this to the 2.0.0 milestone May 26, 2017
@Unrud Unrud deleted the config_file branch June 4, 2017 16:20
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.

2 participants