Update examples eprintln to more accurately reflect error

This commit is contained in:
mitchmindtree 2019-06-24 20:57:01 +02:00
parent c05d2916b1
commit c72bafd8ab
5 changed files with 7 additions and 7 deletions

View file

@ -21,7 +21,7 @@ fn main() -> Result<(), failure::Error> {
let data = match result {
Ok(data) => data,
Err(err) => {
eprintln!("stream {:?} closed due to an error: {}", id, err);
eprintln!("an error occurred on stream {:?}: {}", id, err);
return;
}
};

View file

@ -53,7 +53,7 @@ fn main() -> Result<(), failure::Error> {
let data = match result {
Ok(data) => data,
Err(err) => {
eprintln!("stream {:?} closed due to an error: {}", id, err);
eprintln!("an error occurred on stream {:?}: {}", id, err);
return;
}
};

View file

@ -34,7 +34,7 @@ fn main() -> Result<(), failure::Error> {
let data = match event {
Ok(data) => data,
Err(err) => {
eprintln!("stream {:?} closed due to an error: {}", id, err);
eprintln!("an error occurred on stream {:?}: {}", id, err);
return;
}
};