dont print the string if err
This commit is contained in:
parent
6313b56064
commit
1cf1701579
1 changed files with 6 additions and 3 deletions
|
@ -95,10 +95,13 @@ fn main() {
|
|||
loaded_shinystats,
|
||||
) {
|
||||
println!("{}", e);
|
||||
};
|
||||
|
||||
}
|
||||
else {
|
||||
// final string print
|
||||
println!("{}", encode_string(&out));
|
||||
println!("{}", encode_string(&out))
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Err(e) => println!("{}", e),
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue