dont print the string if err

This commit is contained in:
endernon 2025-01-02 12:07:47 +00:00
parent 6313b56064
commit 1cf1701579

View file

@ -95,10 +95,13 @@ fn main() {
loaded_shinystats, loaded_shinystats,
) { ) {
println!("{}", e); println!("{}", e);
}; }
else {
// final string print // final string print
println!("{}", encode_string(&out)); println!("{}", encode_string(&out))
}
} }
Err(e) => println!("{}", e), Err(e) => println!("{}", e),
} }