Skip to content
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

terror: expose args from Error #735

Closed
wants to merge 1 commit into from

Conversation

sticnarf
Copy link

@sticnarf sticnarf commented Feb 5, 2020

What problem does this PR solve?

Required by pingcap/tidb#14626, the args of Error need be exposed.

What is changed and how it works?

Add a method to Error that returns the args.

Check List

Tests

  • No need for tests because it's too trivial.

Code changes

  • Has exported function/method change

Signed-off-by: Yilin Chen <sticnarf@gmail.com>
@sticnarf sticnarf added the type/enhancement New feature or request label Feb 5, 2020
@sticnarf sticnarf requested a review from a team February 5, 2020 07:47
@ghost ghost requested review from tangenta and removed request for a team February 5, 2020 07:47
@claassistantio
Copy link

claassistantio commented Feb 5, 2020

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Feb 5, 2020

Codecov Report

Merging #735 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master    #735      +/-   ##
=========================================
- Coverage   77.61%   77.6%   -0.02%     
=========================================
  Files          40      40              
  Lines       14294   14296       +2     
=========================================
  Hits        11095   11095              
- Misses       2528    2530       +2     
  Partials      671     671

@@ -177,6 +177,11 @@ func (e *Error) Code() ErrCode {
return e.code
}

// Args returns the inner args
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Args returns the inner args
// Args returns the inner args.

Copy link
Contributor

@tangenta tangenta left a comment

Choose a reason for hiding this comment

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

LGTM

@sticnarf
Copy link
Author

sticnarf commented Feb 7, 2020

Closed as pingcap/tidb#14626 is closed

@sticnarf sticnarf closed this Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants