-
Notifications
You must be signed in to change notification settings - Fork 192
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
Return error code != 0 for errors during verdi import
#4430
Comments
It seems there are two different functions for returning an error from |
This is the intended behavior yes. If the command should fail, one should use |
verdi import
Closing this - feel free to ask further questions if anything is unclear |
I have repurposed this issue to return a non-zero error code in |
@chrisjsewell After the refactoring, is |
Marking this as closed by #4532, and we can double-check that this is actually the case |
Describe the bug
If a migration of an export archive fails, the return code is still
0
.Steps to reproduce
Use
verdi export migrate
with an invalid export archive.Check return code in the terminal afterwards (
$ echo $?
).Expected behavior
For any reporting within
verdi
, ifERROR:
is printed/returned, the return code should not be0
.Your environment
Additional context
This was found by @asle85 during automatic migration of archives for Materials Cloud via Ansible playbooks.
The text was updated successfully, but these errors were encountered: