Improve error message of drop bombs

This commit is contained in:
Jakub Beránek 2024-07-07 11:57:45 +02:00 committed by Jakub Beránek
parent fdf1477221
commit 9634633889
No known key found for this signature in database
GPG Key ID: 909CD0D26483516B

View File

@ -45,7 +45,7 @@ impl Drop for DropBomb {
fn drop(&mut self) {
if !self.defused && !std::thread::panicking() {
panic!(
"command constructed but not executed at {}: `{}`",
"command constructed at `{}` was dropped without being executed: `{}`",
self.armed_location,
self.command.to_string_lossy()
)