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:
		
							parent
							
								
									051912c8e6
								
							
						
					
					
						commit
						cd65f133d5
					
				|  | @ -175,6 +175,7 @@ func KillContainer(w http.ResponseWriter, r *http.Request) { | ||||||
| 	err = con.Kill(signal) | 	err = con.Kill(signal) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrapf(err, "unable to kill Container %s", name)) | 		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
 | 	// Docker waits for the container to stop if the signal is 0 or
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue