Repository navigation
Add storage driver context - #1070
amitshukla wants to merge 2 commits into
Conversation
|
Please sign your commits following these rules: $ git clone -b "working-664" [email protected]:amitshukla/distribution.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -fAmmending updates the existing PR. You DO NOT need to open a new one. |
Errors thrown by storage drivers don't have the name of the driver, causing user confusion about whether the error is coming from Docker or from a storage driver. This change adds the storage driver name to each error message. This required changing ErrUnsupportedDriver to a type, leading to code changes whenever ErrUnsupportedDriver is used. The tests check whether the driver name appears in the error message. Signed-off-by: Amit Shukla [email protected]
b7dc535 to
6b58f90
Compare
|
You will need to sign the commit correctly (you are missing |
…ausing user confusion about whether the error is coming from Docker or from a storage driver. This change adds the storage driver name to each error message. This required changing ErrUnsupportedDriver to a type, leading to code changes whenever ErrUnsupportedDriver is used. The tests check whether the driver name appears in the error message. Signed-off-by: Amit Shukla <[email protected]>
cb7372b to
c12eed2
Compare
|
@RichardScothern done - thanks |
There was a problem hiding this comment.
I changed ErrUnsupportedMethod from var to type. This meant switch on err doesn't work any more.
There was a problem hiding this comment.
@amitshukla That is untrue. You just need to use a type switch. :)
|
@amitshukla heads-up! release is near :) |
There was a problem hiding this comment.
No reason to use pointer type for this struct.
|
ping @amitshukla |
|
carried in #1150 |
Errors thrown by storage drivers don't have the name of the driver, causing user confusion about whether the error is coming from Docker or from a storage driver. This change adds the storage driver name to each error message.
This required changing ErrUnsupportedDriver to a type, leading to code changes whenever ErrUnsupportedDriver is used.
The tests check whether the driver name appears in the error message.
Closes: #664
Signed-off-by: Amit Shukla [email protected]