storj/storage
JT Olio 5ee6b76d41 internal/test: switch errors to error classes (#96)
* internal/test: switch errors to error classes

if you construct an error directly at package init time, you
won't get useful stack traces or anything. zeebo/errs expects that
you always construct an error (.New) when the error actually
happens. instead, you call Class at init time, then use (Class).Has
to test for error type membership.

* fix linter

* fix test
2018-06-19 20:03:46 +02:00
..
boltdb Cleanup & bolt-backed cache (#87) 2018-06-13 14:22:32 -04:00
redis internal/test: switch errors to error classes (#96) 2018-06-19 20:03:46 +02:00
common.go Cleanup & bolt-backed cache (#87) 2018-06-13 14:22:32 -04:00