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

Comments

Projects
None yet
2 participants
@jabelone

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

[379] Improve mosquitto_passwd error messages.
Thanks to Jaimyn Mayer. Closes #379.

Bug: #379
@ralight

This comment has been minimized.

Show comment
Hide comment
@ralight

ralight Feb 12, 2017

Contributor

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

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 Feb 12, 2017

ralight added a commit that referenced this issue Feb 20, 2017

[379] Improve mosquitto_passwd error messages.
Thanks to Jaimyn Mayer. Closes #379.

Bug: #379
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment