diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2018-02-05 21:30:33 +0100 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2018-02-05 21:44:35 +0100 |
| commit | 3a24741929cd12ffee5e54d0e9a9afb83c5069b3 (patch) | |
| tree | 6a91b159d25814e873fcfae08cd40cba9b1dcc14 /errors.go | |
| parent | 7de32502590995ee8d7cc8b681b0f723ca35ccb0 (diff) | |
| download | go-schwift-3a24741929cd12ffee5e54d0e9a9afb83c5069b3.tar.gz | |
redesign the header API
I'm quite satisfied with this right now (though this doesn't say
anything about how I feel about it tomorrow), but it's ugly that some
guts (headers.Base) are exposed in the public API.
Diffstat (limited to 'errors.go')
| -rw-r--r-- | errors.go | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -76,15 +76,3 @@ func Is(err error, code int) bool { } return false } - -//MalformedHeaderError is generated when a response from Swift contains a -//malformed header. -type MalformedHeaderError struct { - Key string - ParseError error -} - -//Error implements the builtin/error interface. -func (e MalformedHeaderError) Error() string { - return "Bad header " + e.Key + ": " + e.ParseError.Error() -} |
