diff options
author | Andrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu> | 2012-05-07 21:58:33 -0400 |
---|---|---|
committer | Andrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu> | 2012-05-07 21:58:33 -0400 |
commit | 13d598e5e7f26bc6177ae3f7d52f4f19729ab2f3 (patch) | |
tree | 216dde82bd19b1beb01d9fd0654daa3538e73f92 /nexgb/xgb_help.go | |
parent | daad54a5e114dcff9ef62abbbd18ea52929d01e5 (diff) | |
download | haven-13d598e5e7f26bc6177ae3f7d52f4f19729ab2f3.tar.gz haven-13d598e5e7f26bc6177ae3f7d52f4f19729ab2f3.tar.xz haven-13d598e5e7f26bc6177ae3f7d52f4f19729ab2f3.zip |
more clean up. use log instead of fmt.Print to stderr. bug fix for event blocking (a hack fix for now).
Diffstat (limited to 'nexgb/xgb_help.go')
-rw-r--r-- | nexgb/xgb_help.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/nexgb/xgb_help.go b/nexgb/xgb_help.go index 6d07938..6c3b40a 100644 --- a/nexgb/xgb_help.go +++ b/nexgb/xgb_help.go @@ -1,7 +1,6 @@ package xgb import ( - "errors" "fmt" "strings" ) @@ -17,10 +16,10 @@ func sprintf(format string, v ...interface{}) string { return fmt.Sprintf(format, v...) } -// newError is just a wrapper for errors.New. Exists for the same reason +// errorf is just a wrapper for fmt.Errorf. Exists for the same reason // that 'stringsJoin' and 'sprintf' exists. -func newError(format string, v ...interface{}) error { - return errors.New(fmt.Sprintf(format, v...)) +func errorf(format string, v ...interface{}) error { + return fmt.Errorf(format, v...) } // Pad a length to align on 4 bytes. |