better thread panic error message

This commit is contained in:
Stephan Dilly 2020-03-28 14:20:23 +01:00
parent 1aa4024721
commit c9cd018394
2 changed files with 6 additions and 2 deletions

View file

@ -96,7 +96,9 @@ impl AsyncDiff {
}
if notify {
sender.send(AsyncNotification::Diff).unwrap();
sender
.send(AsyncNotification::Diff)
.expect("error sending diff");
}
});

View file

@ -76,7 +76,9 @@ impl AsyncStatus {
}
if notify {
sender.send(AsyncNotification::Status).unwrap();
sender
.send(AsyncNotification::Status)
.expect("error sending status");
}
});