Replace formatted errors when unneeded

Signed-off-by: John Hwang <John.F.Hwang@gmail.com>
This commit is contained in:
John Hwang
2020-05-16 17:20:44 -07:00
parent 3f1e886991
commit 7fc291fd45
20 changed files with 91 additions and 82 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
package main
import (
"errors"
"fmt"
"os"
"path/filepath"
@@ -23,7 +24,7 @@ func killContainer(container libcontainer.Container) error {
return nil
}
}
return fmt.Errorf("container init still running")
return errors.New("container init still running")
}
var deleteCommand = cli.Command{