From dbb00caca11859c979da578e62fdca3f1fd60aaa Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk Date: Sun, 18 Dec 2022 15:16:37 +0100 Subject: [PATCH] Improved dump output with command to be copieable by pb command. --- src/repl.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/repl.rs b/src/repl.rs index 8f73636..ebbef4c 100644 --- a/src/repl.rs +++ b/src/repl.rs @@ -317,7 +317,8 @@ impl<'a> LKEval<'a> { } }; if output.len() > 0 { - out.push(format!("Passwords dumped to command {} and got following output: {}", cmd, output)); + err.push(format!("Passwords dumped to command {} and got following output:", cmd)); + out.push(output); } else { out.push(format!("Passwords dumped to command {}", cmd)); }