mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 14:02:22 -05:00
Attach error message as context
This commit is contained in:
parent
8df66f7991
commit
34f02cf83d
1 changed files with 1 additions and 2 deletions
|
@ -102,8 +102,7 @@ pub fn watch(
|
||||||
watch_state.render()?;
|
watch_state.render()?;
|
||||||
}
|
}
|
||||||
WatchEvent::NotifyErr(e) => {
|
WatchEvent::NotifyErr(e) => {
|
||||||
watch_state.into_writer().write_all(NOTIFY_ERR.as_bytes())?;
|
return Err(Error::from(e).context(NOTIFY_ERR));
|
||||||
return Err(Error::from(e));
|
|
||||||
}
|
}
|
||||||
WatchEvent::TerminalEventErr(e) => {
|
WatchEvent::TerminalEventErr(e) => {
|
||||||
return Err(Error::from(e).context("Terminal event listener failed"));
|
return Err(Error::from(e).context("Terminal event listener failed"));
|
||||||
|
|
Loading…
Reference in a new issue