diff --git a/lib/cp.go b/lib/cp.go index d97c1d8e..a2410491 100644 --- a/lib/cp.go +++ b/lib/cp.go @@ -2415,9 +2415,6 @@ func (cc *CopyCommand) downloadFiles(srcURL CloudURL, destURL FileURL) error { func (cc *CopyCommand) formatResultPrompt(err error) error { cc.closeProgress() fmt.Printf(cc.monitor.progressBar(true, normalExit)) - if err != nil && cc.cpOption.ctnu { - return nil - } return err } diff --git a/lib/cp_test.go b/lib/cp_test.go index af610502..e036a695 100644 --- a/lib/cp_test.go +++ b/lib/cp_test.go @@ -4665,7 +4665,7 @@ func (s *OssutilCommandSuite) TestDownLoadWithoutDisableIgnoreError(c *C) { // download _, err = cm.RunCommand("cp", cpArgs, options) - c.Assert(err, IsNil) + c.Assert(err, NotNil) // check,success download 2 file // exist