Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Return code is 0 when encounter errors. #75

Open
yuantuo666 opened this issue Sep 3, 2024 · 0 comments
Open

[BUG] Return code is 0 when encounter errors. #75

yuantuo666 opened this issue Sep 3, 2024 · 0 comments

Comments

@yuantuo666
Copy link

yuantuo666 commented Sep 3, 2024

E.g.

$ coscli cp big_files.tar.gz cos://bucket/big_files.tar.gz
FinishWithError: Total num: 1, size: 549,304,363,924 Byte (511.58 GB). Error num: 1. OK num: 0, Transfer size: 0 Byte (0.00 B).
Some file upload failed, please check the detailed information in dir /path/to/wd/coscli_output/20240903_063837.

AvgSpeed: 0.00 B/s

cost 0.012000(s)
$ echo $?
0

error.report


Upload big_files.tar.gz to cos://bucket/big_files.tar.gz failed: Too many parts, out of 10000

When an error occurred should return a not 0 exit code. Reference: https://en.wikipedia.org/wiki/Exit_status

@yuantuo666 yuantuo666 changed the title Return code is 0 when encounter errors. [BUG] Return code is 0 when encounter errors. Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant