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

4
cmd/dist/fetch.go vendored
View file

@ -52,11 +52,11 @@ var fetchCommand = cli.Command{
}
if locator == "" {
return fmt.Errorf("containerd: remote required")
return errors.New("containerd: remote required")
}
if len(args) < 1 {
return fmt.Errorf("containerd: object required")
return errors.New("containerd: object required")
}
object := args[0]