All printed warnings should have some context

This commit is contained in:
Jakob Borg
2014-08-17 10:28:36 +02:00
parent d20df12168
commit 1a66461e07
4 changed files with 8 additions and 8 deletions

View File

@@ -315,7 +315,7 @@ func Load(rd io.Reader, myID protocol.NodeID) (Configuration, error) {
if len(cfg.GUI.Password) > 0 && cfg.GUI.Password[0] != '$' {
hash, err := bcrypt.GenerateFromPassword([]byte(cfg.GUI.Password), 0)
if err != nil {
l.Warnln(err)
l.Warnln("bcrypting password:", err)
} else {
cfg.GUI.Password = string(hash)
}