Skip to content

--config - using any configuration other than "production" causes a config error, however, this error is not clear #186

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

Closed
rob256 opened this issue Jun 28, 2017 · 1 comment · Fixed by #211
Assignees

Comments

@rob256
Copy link

rob256 commented Jun 28, 2017

The config parses fine when production is used. As per:

production:
    host: some.mongo.host
    port: 27018
    backup:
        method: mongodump
        name: dump1
        location: /tmp/backup

However, using the following configuration causes the following:

development:
    host: some.mongo.host
    port: 27018
    backup:
        method: mongodump
        name: dump1
        location: /tmp/backup
Error setting up configuration: 'Field "backup.name" must be set via command-line or config file!'!

This error is very unclear.

@rob256 rob256 changed the title --config - using any configuration other than "production" causes a config error, however this error is not clear --config - using any configuration other than "production" causes a config error, however, this error is not clear Jun 28, 2017
@timvaillancourt
Copy link
Contributor

Thanks @rob256, this is indeed unclear. I don't think we tested with anything other than 'production', so this makes sense.

@timvaillancourt timvaillancourt added this to the 1.2.0 milestone Aug 31, 2017
@timvaillancourt timvaillancourt self-assigned this Aug 31, 2017
dbmurphy added a commit that referenced this issue Sep 20, 2017
Return more-descriptive error for missing required fields (#186)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants