Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Commit

Permalink
container: Call new error creation function
Browse files Browse the repository at this point in the history
Make a call to the new internal error creation function.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
  • Loading branch information
jodh-intel committed Mar 2, 2018
1 parent f0491d2 commit 7aec6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion container.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ func (c *Container) kill(signal syscall.Signal, all bool) error {
}

if c.state.State != StateReady && c.state.State != StateRunning {
return fmt.Errorf("Container not ready or running, impossible to signal the container")
return Errorf("Container not ready or running, impossible to signal the container")
}

return c.pod.agent.killContainer(*(c.pod), *c, signal, all)
Expand Down

0 comments on commit 7aec6e9

Please sign in to comment.