diff --git a/delete.go b/delete.go index 6e6b463ef..746b0df54 100644 --- a/delete.go +++ b/delete.go @@ -79,7 +79,7 @@ status of "ubuntu01" as "stopped" the following will delete resources held for if force { return killContainer(container) } - return fmt.Errorf("cannot delete container %s that is not stopped: %s\n", id, s) + return fmt.Errorf("cannot delete container %s that is not stopped: %s", id, s) } return nil diff --git a/start.go b/start.go index 3a1769a43..338737c0a 100644 --- a/start.go +++ b/start.go @@ -48,7 +48,7 @@ your host.`, case libcontainer.Running: return errors.New("cannot start an already running container") default: - return fmt.Errorf("cannot start a container in the %s state\n", status) + return fmt.Errorf("cannot start a container in the %s state", status) } }, }