Skip to content

Commit

Permalink
Add error print in addErrorToMsg()
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeguy committed Oct 23, 2023
1 parent 6893270 commit 4396d88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions object/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ func (site *Site) GetHost() string {
}

func addErrorToMsg(msg string, function string, err error) string {
fmt.Printf("%s(): %s\n", function, err.Error())
if msg == "" {
return fmt.Sprintf("%s(): %s", function, err.Error())
} else {
Expand Down

0 comments on commit 4396d88

Please sign in to comment.