forked from M-Labs/artiq
runtime: show a more informative message for interrupted sessions.
Fixes #690.
This commit is contained in:
parent
948ed6fb0a
commit
d04d7ed120
|
@ -698,6 +698,8 @@ pub fn thread(io: Io) {
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
if err.kind() == io::ErrorKind::UnexpectedEof {
|
if err.kind() == io::ErrorKind::UnexpectedEof {
|
||||||
info!("connection closed");
|
info!("connection closed");
|
||||||
|
} else if err.kind() == io::ErrorKind::Interrupted {
|
||||||
|
info!("kernel interrupted");
|
||||||
} else {
|
} else {
|
||||||
congress.finished_cleanly.set(false);
|
congress.finished_cleanly.set(false);
|
||||||
error!("session aborted: {}", err);
|
error!("session aborted: {}", err);
|
||||||
|
|
Loading…
Reference in New Issue