diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py index 14413669f1a..28feb053652 100644 --- a/lib/spack/spack/stage.py +++ b/lib/spack/spack/stage.py @@ -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)