Skip to content
Unverified Commit 800a15e2 authored by João Pereira's avatar João Pereira
Browse files

fix(api/errcode): extract enclosed error from a storage driver catch-all error

Whenever an unexpected error happens, the storage driver base client
will wrap it in a catch-all error, `storagedriver.Error`. Because of it,
if we get one of these errors we must extract the enclosed error before
trying to identify the best HTTP status for it, otherwise this will
always lead to a 500 Internal Server Error.
parent 209cf5f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment