Doug Davis
aae59d54ef
Make Error.Error() return the post-arg-substitution Message
...
Missed this during the removal of the args property
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-07-22 12:44:59 -07:00
Stephen J Day
81c21411e8
Export ServeJSON for serving error codes
...
This changeset provides a common http handler for serving errcodes. This should
unify http responses across webservices in the face of errors.
Several type assertions have been added, as well, to ensure the error interface
is implemented.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2015-07-16 12:14:14 -07:00
Doug Davis
db30d384e0
Add ability to pass in substitution args into an Error
...
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-07-15 11:02:10 -07:00
Doug Davis
365de1b215
Add back in the "errors" wrapper in the Errors serialization
...
See: https://github.com/docker/distribution/pull/548/files#r32794064
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-06-18 18:00:26 -07:00
Doug Davis
56349665b7
Round 4
...
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-06-11 21:33:35 -07:00
Doug Davis
b8b16b78f4
Round 3 - Add Register function
...
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-06-02 10:01:21 -07:00
Doug Davis
00b1e8fca0
Round 2
...
Make Errors a []Error
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-05-26 17:18:32 -07:00
Doug Davis
f565d6abb7
Move ErrorCode logic to new errcode package
...
Make HTTP status codes match the ErrorCode by looking it up in the Descriptors
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-05-26 13:18:54 -07:00