Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Fix panic when genericError constructor gets nil error #424

Merged
merged 2 commits into from
Mar 4, 2015

Conversation

dqminh
Copy link
Contributor

@dqminh dqminh commented Mar 4, 2015

genericError constructor should not panic when we pass in nil error, but we should not pass nil error actually. This fixes it.

dqminh added 2 commits March 3, 2015 22:47
currently genericError constructors require not-nil error to be able to read
its Error() message

Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com>
if the error is nil, we do not populate generic error's message, but the
constructor will still return a valid error

Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com>
@LK4D4
Copy link
Contributor

LK4D4 commented Mar 4, 2015

LGTM

1 similar comment
@mrunalp
Copy link
Contributor

mrunalp commented Mar 4, 2015

LGTM

mrunalp pushed a commit that referenced this pull request Mar 4, 2015
Fix panic when genericError constructor gets nil error
@mrunalp mrunalp merged commit 9036807 into docker-archive:master Mar 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants