Skip to content

Commit

Permalink
Merge pull request #35 from TrixterTheTux/TrixterTheTux-user-panic
Browse files Browse the repository at this point in the history
Agent panic if username fetch fails
  • Loading branch information
nicocha30 committed Apr 17, 2023
2 parents 6ef1269 + 5c7ed8e commit ee150f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func handleConn(conn net.Conn) {
hostname = "UNKNOWN"
}

userinfo, _ := user.Current()
userinfo, err := user.Current()
if err != nil {
username = "Unknown"
} else {
Expand Down

0 comments on commit ee150f6

Please sign in to comment.