Skip to content

centralize harded-code message#3391

Closed
fahedouch wants to merge 3 commits intocontainerd:masterfrom
fahedouch:master
Closed

centralize harded-code message#3391
fahedouch wants to merge 3 commits intocontainerd:masterfrom
fahedouch:master

Conversation

@fahedouch
Copy link
Copy Markdown
Member

@fahedouch fahedouch commented Jul 3, 2019

Hello,

I found a lot of messages to centralize, so I'll split work on small pull request

Ref : #3349

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 3, 2019

Build succeeded.

Comment thread errdefs/errors.go Outdated
Copy link
Copy Markdown
Contributor

@ehotinger ehotinger Jul 3, 2019

Choose a reason for hiding this comment

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

you need to use gofmt / goimports and sign your commit

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 6, 2019

Build succeeded.

@estesp
Copy link
Copy Markdown
Member

estesp commented Jul 8, 2019

You need to merge your two commits together to pass CI; let us know if you need help doing that! Thanks.

@dmcgowan
Copy link
Copy Markdown
Member

dmcgowan commented Jul 8, 2019

The errdefs package is intended to have a smaller set of error definitions and match the set of error codes used by grpc. The expected way to use the errdefs package is to wrap one of these with a more meaningful message. This package is not the place to add these more specific errors, however they can be added to individual packages where they are used to reduce duplication within a single package.

@fahedouch
Copy link
Copy Markdown
Member Author

hello,

@dmcgowan what you just said is not wrong :).

What do you think about adding file to each package where we can centralize errors fo this specific package @crosbymichael ?

@dmcgowan
Copy link
Copy Markdown
Member

dmcgowan commented Jul 8, 2019

I am fine adding a centralizing within a package. In some cases though the error itself does not need to be exported and the errors would be better off as errors.Wrap(errdefs.ErrInvalidArgument, "some message why it is wrong"), and if that message is duplicated that is fine.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 10, 2019

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 10, 2019

Build succeeded.

@estesp
Copy link
Copy Markdown
Member

estesp commented Jul 11, 2019

You have a merge commit (that's empty) that needs to be removed to make CI run cleanly.

fahedouch and others added 2 commits July 12, 2019 23:36
This reverts commit 5e5d9de357f0e58ed1de68ffa96bb2c7e7734a48, reversing
changes made to 0adf2fb.
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 12, 2019

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

@fahedouch fahedouch closed this Jul 12, 2019
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