add missing return for compat kill

on an error condition in kill for the compatibility layer, we were missing a return.

Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
baude 2020-09-21 12:31:07 -05:00
parent 051912c8e6
commit cd65f133d5
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ func KillContainer(w http.ResponseWriter, r *http.Request) {
err = con.Kill(signal)
if err != nil {
utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrapf(err, "unable to kill Container %s", name))
return
}
// Docker waits for the container to stop if the signal is 0 or