-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meta: refine error code for package meta
#13654
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13654 +/- ##
===========================================
Coverage 80.0683% 80.0683%
===========================================
Files 474 474
Lines 116734 116734
===========================================
Hits 93467 93467
Misses 15882 15882
Partials 7385 7385 |
/run-all-tests |
/run-all-tests |
/run-unit-test |
/run-all-tests |
@@ -290,6 +294,7 @@ func (s *testSuite) TestSnapshot(c *C) { | |||
c.Assert(n, Equals, int64(1)) | |||
_, err = snapMeta.GenGlobalID() | |||
c.Assert(err, NotNil) | |||
c.Assert(err.Error(), Equals, "[structure:5]write on snapshot") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an unexported error, so we check it by compare string.
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
Not all the errors in meta package have error code.
What is changed and how it works?
add them.
Check List
Tests
Code changes
Side effects
Related changes
Release note