- tasksch error show taks name

- distinguish platform error
This commit is contained in:
gazebo
2018-12-03 16:19:51 +08:00
parent 042a0d1752
commit ceb66bc48a
7 changed files with 21 additions and 14 deletions

View File

@@ -9,6 +9,7 @@ import (
)
func TestTaskError(t *testing.T) {
err := NewTaskError(errors.New("hello"))
err := NewTaskError("test", errors.New("hello"))
fmt.Println(utils.Format4Output(err, false))
fmt.Println(err.Error())
}