forked from InfoshockTech/xcrab
Return an actual error instead of just printing
This commit is contained in:
parent
c18f76ce4d
commit
b6c76e4d27
|
@ -42,7 +42,7 @@ async fn main() -> Result<()> {
|
|||
read.read_to_string(&mut buf).await?;
|
||||
|
||||
if !buf.is_empty() {
|
||||
println!("Error: {}", buf);
|
||||
return Err(buf.into());
|
||||
}
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue