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

Add additional error messaging to payu clone #431 #435

Merged

Conversation

jo-basevi
Copy link
Collaborator

As described in issue #431, added extra message when directory to clone to already exists,
and if there is an incomplete checkout, remove the cloned directory and add an additional error message.

It only removes directory in incomplete checkout command if the custom PayuBranchError is raised. I didn't make it general as there could be errors post-checkout like config.yaml not existing - In this case no metadata is created.

Closes #431

@aidanheerdegen aidanheerdegen self-requested a review April 9, 2024 10:40
Copy link
Collaborator

@aidanheerdegen aidanheerdegen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I tested the previous behaviour and this change fixed it.

@jo-basevi jo-basevi merged commit 91f2831 into payu-org:master Apr 10, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

Error recovering from incomplete checkout
2 participants