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

Repository error 404 handling #1341

Conversation

piotr-faba-ardigen
Copy link

Adds dedicated error handling for 404 error.
Use case:
Perform nextflow pull on repository that exists (and credentials in scm configuration file are correct), but the API is different for some reason.

nextflow pull test_proj/test_repo -hub test_hub

Then the current message displayed to user is:

Cannot find `test_proj` -- Make sure exists a BitBucketServer repository at this address `https://bitbucket.server.com/scm/test_proj/test_repo`

This is misleading when dealing with unsupported repository provider, as we know this repository exists, so the information is of no use in such case.

The new message indicates clearer what the source of error is:

API Uri not found. The uri that was used for the query: https://bitbucket.biscrum.com/rest/api/1.0/projects/test_proj/repos/test_repo/raw/main.nf

piotr-faba-ardigen and others added 2 commits October 21, 2019 10:38
Signed-off-by: Piotr Faba <piotr.faba@ardigen.com>
@pditommaso
Copy link
Member

pditommaso commented Oct 21, 2019

OK, I've merged this manually [02cf0a5]. Thanks!

@pditommaso pditommaso closed this Oct 21, 2019
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.

None yet

2 participants