-
Notifications
You must be signed in to change notification settings - Fork 188
error_message: remove stack error message #746
Conversation
Test fail because pingcap/tidb#18061 |
/run-all-tests tidb=v4.0.1 |
/run-all-tests tidb=v4.0.0 |
dm/ctl/master/check_task.go
Outdated
@@ -44,7 +44,7 @@ func checkTaskFunc(cmd *cobra.Command, _ []string) { | |||
} | |||
content, err := common.GetFileContent(cmd.Flags().Arg(0)) | |||
if err != nil { | |||
common.PrintLines("get file content error:\n%v", errors.ErrorStack(err)) | |||
common.PrintLines("get file content error:\n%v", terror.Message(err)) |
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.
How about returning Error
directly? for terror
, it will contain useful code
, class
, etc.
/run-all-tests tidb=v4.0.0 |
1 similar comment
/run-all-tests tidb=v4.0.0 |
8f7c249
to
e78ee18
Compare
/run-all-tests tidb=v4.0.0 |
/run-all-tests tidb=v4.0.0 |
Co-authored-by: Xuecheng Zhang <[email protected]>
/run-all-tests tidb=v4.0.0 |
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 tidb=v4.0.0 |
Codecov Report
@@ Coverage Diff @@
## master #746 +/- ##
================================================
+ Coverage 57.0871% 57.1138% +0.0266%
================================================
Files 206 205 -1
Lines 21292 21191 -101
================================================
- Hits 12155 12103 -52
+ Misses 7951 7916 -35
+ Partials 1186 1172 -14 |
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
cherry pick to release-1.0 failed |
What problem does this PR solve?
remove stack information of error message
What is changed and how it works?
Tests