Skip to content

Commit 6c40145

Browse files
committed
utils: missing format! in context macro
The formatting directives are shown to the user: ``` Error: unknown flag: --user root:root See 'podman run --help' ERROR running reinstall command: Failed to run command: {self:#?} ``` This is due to a lack of `format!` directive Signed-off-by: Omer Tuchfeld <[email protected]>
1 parent 7592807 commit 6c40145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/src/command.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl CommandRunExt for Command {
144144
.then_some(())
145145
// The [`Debug`] output of command contains a properly shell-escaped commandline
146146
// representation that the user can copy paste into their shell
147-
.context("Failed to run command: {self:#?}")
147+
.context(format!("Failed to run command: {self:#?}"))
148148
}
149149
}
150150

0 commit comments

Comments
 (0)