mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
Fix ReplaceHome implementation
This commit is contained in:
@@ -342,7 +342,12 @@ func ReplaceHome(path string) string {
|
|||||||
} else {
|
} else {
|
||||||
userData, err = user.Lookup(homeString[1:])
|
userData, err = user.Lookup(homeString[1:])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
messenger.Error("Could not find user: ", err)
|
if messeger != nil {
|
||||||
|
messenger.Error("Could not find user: ", err)
|
||||||
|
} else {
|
||||||
|
TermMessage("Could not find user: ", err)
|
||||||
|
}
|
||||||
|
return ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user