Fix ReplaceHome implementation

This commit is contained in:
Zachary Yedidia
2018-03-30 16:21:39 -04:00
parent 804943a1e8
commit 3293160dcb

View File

@@ -342,7 +342,12 @@ func ReplaceHome(path string) string {
} else {
userData, err = user.Lookup(homeString[1:])
if err != nil {
if messeger != nil {
messenger.Error("Could not find user: ", err)
} else {
TermMessage("Could not find user: ", err)
}
return ""
}
}