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

[mosquitto_passwd] Confusing error if user forgets to include username #379

Closed
jabelone opened this issue Feb 12, 2017 · 1 comment
Closed

Comments

@jabelone
Copy link

If you run the following command (without specifying a username) mosquitto_passwd -c /etc/mosquitto/passwd you get a very confusing error message even if the file exists Error: Unable to open password file -c. No such file or directory.. This had me confused for a little while until I realised I forgot the username. If I include the username like mosquitto_passwd -c /etc/mosquitto/passwd jaimyn without changing anything else, it works fine.

I understand it's not critical and completely the users fault for not using the right syntax. However the misleading error message may lead to someone getting very confused.

This is on Ubuntu 16.04 with mosquitto 1.4.8. (installed via apt-get)

ralight added a commit that referenced this issue Feb 12, 2017
Thanks to Jaimyn Mayer. Closes #379.

Bug: #379
@ralight
Copy link
Contributor

ralight commented Feb 12, 2017

Thanks very much, you're quite right. I've pushed a change that should improve things.

@ralight ralight closed this as completed Feb 12, 2017
ralight added a commit that referenced this issue Feb 20, 2017
Thanks to Jaimyn Mayer. Closes #379.

Bug: #379
@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants