Skip to content

Add Storage Driver Context. - #1150

Merged
RichardScothern merged 2 commits into
distribution:masterfrom
RichardScothern:carry-1070
Nov 3, 2015
Merged

RichardScothern merged 2 commits into
distribution:masterfrom
RichardScothern:carry-1070

Conversation

@RichardScothern

Copy link
Copy Markdown

Carry #1070. This PR implements review feedback.

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

@RichardScothern

Copy link
Copy Markdown
Author

cc @amitshukla @stevvooe

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can Enclosed just be error?

amitshukla and others added 2 commits November 3, 2015 11:19
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]>
@stevvooe

stevvooe commented Nov 3, 2015

Copy link
Copy Markdown
Collaborator

LGTM

RichardScothern pushed a commit that referenced this pull request Nov 3, 2015
@RichardScothern
RichardScothern merged commit 603ffd5 into distribution:master Nov 3, 2015
@RichardScothern
RichardScothern deleted the carry-1070 branch February 5, 2016 18:30
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Apr 22, 2021
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Jan 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants