From 35dd47447381c371d669ede8377b195acda205ce Mon Sep 17 00:00:00 2001 From: Andreas Baumbach Date: Mon, 4 Oct 2021 14:47:14 +0200 Subject: [PATCH] Improve an error message in stage.py (#23737) --- lib/spack/spack/stage.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py index 14413669f1..28feb05365 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)