Skip to content
This repository has been archived by the owner on Sep 3, 2018. It is now read-only.

Commit

Permalink
If there is no error, do not output
Browse files Browse the repository at this point in the history
  • Loading branch information
pyama86 committed Mar 10, 2017
1 parent ff1246a commit 1b47a0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/setup/stns-setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ import (
func main() {
config, err := libstns.LoadConfig("/etc/stns/libnss_stns.conf")
if err == nil {
fmt.Println(Run(config, os.Getenv("USER")))
if err := Run(config, os.Getenv("USER")); err != nil {
fmt.Println(err)
}
}
}

Expand Down

0 comments on commit 1b47a0f

Please sign in to comment.