pingcap / failpoint

An implementation of failpoints for Golang.
Apache License 2.0
817 stars 63 forks source link

failpoint: avoid returning the undeclared error #54

Closed shafreeck closed 4 years ago

shafreeck commented 4 years ago

Signed-off-by: Shafreeck Sea shafreeck@gmail.com

What problem does this PR solve?

Some unuseful messages are printed

failpoint is disabled on xxx

What is changed and how it works?

Check List

Tests

codecov[bot] commented 4 years ago

Codecov Report

Merging #54 into master will decrease coverage by 0.2939%. The diff coverage is 84.6153%.

@@               Coverage Diff                @@
##             master        #54        +/-   ##
================================================
- Coverage   86.0082%   85.7142%   -0.2940%     
================================================
  Files             7          7                
  Lines           972        980         +8     
================================================
+ Hits            836        840         +4     
- Misses           84         86         +2     
- Partials         52         54         +2