-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Comments
Thanks very much, you're quite right. I've pushed a change that should improve things. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 existsError: 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 likemosquitto_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)
The text was updated successfully, but these errors were encountered: