about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJ. Neuschäfer <j.ne@posteo.net>2025-09-12 13:31:49 +0200
committerJ. Neuschäfer <j.ne@posteo.net>2025-09-12 13:32:07 +0200
commitfefc9793740e88585a28ed966100718df9dbe522 (patch)
tree763f1ba5cca1e843ae92a88d50b178e5b680fbbf
parent8e2ed71effd5f81bff319c0c7adaca42084e2a71 (diff)
downloadrust-fefc9793740e88585a28ed966100718df9dbe522.tar.gz
rust-fefc9793740e88585a28ed966100718df9dbe522.zip
bootstrap: Show target in "No such target exists" message
This makes it a little easier to pinpoint the issue.
-rw-r--r--src/bootstrap/src/core/sanity.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/src/core/sanity.rs b/src/bootstrap/src/core/sanity.rs
index 04cf63f1c6d..68202500d97 100644
--- a/src/bootstrap/src/core/sanity.rs
+++ b/src/bootstrap/src/core/sanity.rs
@@ -287,7 +287,7 @@ than building it.
 
             if !has_target {
                 panic!(
-                    "No such target exists in the target list,\n\
+                    "{target_str}: No such target exists in the target list,\n\
                      make sure to correctly specify the location \
                      of the JSON specification file \
                      for custom targets!\n\