Use error.New () directly to output the error message

Signed-off-by: fate-grand-order <chenjg@harmonycloud.cn>
This commit is contained in:
fate-grand-order 2017-02-10 12:32:11 +08:00
parent 696e88c813
commit af86cd4d2f
8 changed files with 13 additions and 12 deletions

View file

@ -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
}