Wireup stdout & stderr attempt 2
This commit is contained in:
parent
43cfac29e8
commit
3427477ec8
@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# These can be VERY verbose, so we suggest turning them off
|
# These can be VERY verbose, so we suggest turning them off
|
||||||
# unless you really need them.
|
# unless you really need them.
|
||||||
debug: false
|
debug: true
|
||||||
|
|
||||||
# Use this to change the Rust version used to run your code
|
# Use this to change the Rust version used to run your code
|
||||||
# on Codecrafters.
|
# on Codecrafters.
|
||||||
|
@ -14,9 +14,9 @@ fn main() {
|
|||||||
|
|
||||||
if output.status.success() {
|
if output.status.success() {
|
||||||
let std_out = std::str::from_utf8(&output.stdout).unwrap();
|
let std_out = std::str::from_utf8(&output.stdout).unwrap();
|
||||||
println!("{}", std_out);
|
print!("{}", std_out);
|
||||||
let std_err = std::str::from_utf8(&output.stderr).unwrap();
|
let std_err = std::str::from_utf8(&output.stderr).unwrap();
|
||||||
println!("{}", std_err);
|
print!("{}", std_err);
|
||||||
} else {
|
} else {
|
||||||
std::process::exit(1);
|
std::process::exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user