Commit Graph

16 Commits

Author SHA1 Message Date
Taylor Blau
013c02d010 errors/types.go: add a new UnprocessableEntityError
To indicate that we have encountered an HTTP 422, let's introduce a new
sentinel type to do just that.

It will be instantiated and returned in a subsequent commit from
tq/basic_upload.go, and then caught down in tq/transfer_queue.go.
2018-07-31 13:21:49 -05:00
Stephen Gelman
72a519397c Fix parentOf function to work with updated github.com/pkg/errors 2017-07-18 01:03:29 +00:00
Jakub Mikians
5d542d398f Move retry logic to errors.IsRetrialbeError
Also added unit tests.
2017-06-14 06:40:33 +02:00
risk danger olson
5604e29ef3 Print error causes to stderr 2017-02-24 16:31:27 -07:00
Steve Streeting
c99d924791 Early return instead of nesting (code style) 2017-01-09 10:57:33 +00:00
Steve Streeting
08e3e5b40e Add knowledge of cached lockable patterns to locking.Client
Also add functions to fix writeable flag based on these patterns
2016-12-19 16:47:22 +00:00
risk danger olson
831bcc4358 errors: remove Error prefix 2016-08-19 14:03:39 -06:00
risk danger olson
8624a87328 fix stacktrace logging 2016-08-19 12:30:53 -06:00
risk danger olson
b5a1c070f9 errors: split into multiple go files 2016-08-18 16:15:15 -06:00
risk danger olson
8ecfd22403 errors: remove unused Stack() func 2016-08-18 16:02:58 -06:00
risk danger olson
c99920070c errors: implement fmt.Formatter 2016-08-18 15:55:44 -06:00
risk danger olson
a3a4e5b78e errors: remove GetInnerError() and ErrorWithStack 2016-08-18 15:43:28 -06:00
risk danger olson
69acb28d61 lean into pkg/errors philosophy on wrappin' 2016-08-18 15:24:11 -06:00
Taylor Blau
311cc7a2af api,auth,errors,httputil,lfs,transfer: wrap errors 2016-08-18 15:02:21 -06:00
Taylor Blau
8fd3774c92 errors: Errorf -> Wrapf 2016-08-18 14:35:11 -06:00
risk danger olson
2473068345 rename errutil to errors 2016-08-18 14:20:33 -06:00