Closed ericbrandwein closed 5 years ago
+1
Thanks for the report! Looking into a solution now.
This is tricky, because config is loaded before logging is set up. Perhaps an absence of a config file, username, or password, should result in a print(<error message>)
and sys.exit
? Thoughts appreciated. :)
This is a good solution. And as said @ericbrandwein, if password is missing, it would be nice to prompt for it. It's not necessary to log anything.
WIP pull request opened for feedback: #75
This can be marked as solved now that the above PR is merged
When running
sncli
for the first time, I got this error:This happened because I didn't put a password in the configuration file. Maybe using a better error message, like "Configuration file $HOME/.sncli does not have a password set", or maybe prompting for the password to put on the configuration file, would make for a better experience for the user.