Use error.New () directly to output the error message
Signed-off-by: fate-grand-order <chenjg@harmonycloud.cn>
This commit is contained in:
parent
696e88c813
commit
af86cd4d2f
8 changed files with 13 additions and 12 deletions
|
@ -60,7 +60,7 @@ func DumpDir(t *testing.T, root string) {
|
|||
} else if fi.Mode().IsRegular() {
|
||||
p, err := ioutil.ReadFile(path)
|
||||
if err != nil {
|
||||
t.Log("error reading file: %v", err)
|
||||
t.Logf("error reading file: %v", err)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue