Skip to content

Commit

Permalink
Merge pull request #15 from maniksurtani/master
Browse files Browse the repository at this point in the history
Use parameter, not constant
  • Loading branch information
spencerkimball committed May 20, 2014
2 parents 121c5ec + 501ac86 commit 287d298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const errorPrefixFormat string = "%s:%d: "
// original caller.
func getPrefix(format string) string {
if _, file, line, ok := runtime.Caller(2); ok {
return fmt.Sprintf(errorPrefixFormat, filepath.Base(file), line)
return fmt.Sprintf(format, filepath.Base(file), line)
}
return ""
}
Expand Down

0 comments on commit 287d298

Please sign in to comment.