mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +01:00
8a0e8627ff
Fixes #9704 As we do want to unify error handling, so just decreprates pkg errors, use lib/errors instead for Harbor internal used errors model. 1, The lib/errors can cover all of funcs of pkg/errors, and also it has code attribute to define the http return value. 2, lib/errors can give a OCI standard error format, like {"errors":[{"code":"UNAUTHORIZED","message":"unauthorized"}]} If you'd like to use pkg/errors, use lib/errors instead. If it cannot meet your request, enhance it. Signed-off-by: wang yan <wangyan@vmware.com> |
||
---|---|---|
.. | ||
manager_test.go | ||
manager.go | ||
migrator_v180.go | ||
migrator.go | ||
version.go |