Improve an error message in stage.py (#23737)

This commit is contained in:
Andreas Baumbach 2021-10-04 14:47:14 +02:00 committed by GitHub
parent 2ca58e91d6
commit 35dd474473
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -504,7 +504,8 @@ def print_errors(errors):
print_errors(errors)
self.fetcher = self.default_fetcher
raise fs.FetchError(err_msg or 'All fetchers failed', None)
default_msg = 'All fetchers failed for {0}'.format(self.name)
raise fs.FetchError(err_msg or default_msg, None)
print_errors(errors)