All printed warnings should have some context

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

No files matched your search

+1 -1
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)
}