disabling cache; it's not really necessary.
This commit is contained in:
16
tunnelbroker/funcs_httperror.go
Normal file
16
tunnelbroker/funcs_httperror.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package tunnelbroker
|
||||
|
||||
import (
|
||||
`fmt`
|
||||
)
|
||||
|
||||
// Error conforms an HTTPError to an error.
|
||||
func (h *HTTPError) Error() (errMsg string) {
|
||||
|
||||
errMsg = h.CodeStr
|
||||
if h.Message != nil {
|
||||
errMsg += fmt.Sprintf(":\n%s", *h.Message)
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user