minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.86k stars 548 forks source link

Set exitcode on copy/mirror source failure #4798

Closed klauspost closed 10 months ago

klauspost commented 10 months ago

Description

Also fixes errors potentially being swallowed by filtering.

Fixes #4773

λ go build&&mc cp s3/default/1.mp4 1.mp4
mc: <ERROR> Unable to prepare URL for copying. Unable to guess the type of copy operation.

λ echo %errorlevel%
1

How to test this PR?

See above and #4773

Types of changes