At the moment, if the bundle is not found, each resolver will return False, None, None which corresponds to something is not found (False), the file name (None), and the full path to the artefact (None).
In the event of error, at the moment False, None, None will be returned and no exception will be raised to allow for the next resolver in the chain to continue.
However I’m thinking of adding another argument which contains list of possible errors encountered during resolution.
For example, uri_resolver encounters HTTPError, it will return False, None, None, [http_error_instance], vs False, None, None, [] if the artefact is simply not found. If all is well, it will return True, file_name, file_path, [].
This way it’s possible to continue through the resolver chain, collect the possible errors that could happen, and if the bundle is indeed not found and if there are errors, we can display those.
At the moment, if the bundle is not found, each resolver will return
False, None, None
which corresponds to something is not found (False
), the file name (None
), and the full path to the artefact (None
).In the event of error, at the moment
False, None, None
will be returned and no exception will be raised to allow for the next resolver in the chain to continue.However I’m thinking of adding another argument which contains list of possible errors encountered during resolution.
For example,
uri_resolver
encountersHTTPError
, it will returnFalse, None, None, [http_error_instance]
, vsFalse, None, None, []
if the artefact is simply not found. If all is well, it will returnTrue, file_name, file_path, []
.This way it’s possible to continue through the resolver chain, collect the possible errors that could happen, and if the bundle is indeed not found and if there are errors, we can display those.