Browse Source

Fix error messages

tags/v0.2.0-candidate
Philipp Oppermann 3 years ago
parent
commit
cf89bf0d1c
Failed to extract signature
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      apis/rust/node/src/daemon.rs

+ 2
- 2
apis/rust/node/src/daemon.rs View File

@@ -68,9 +68,9 @@ impl ControlChannel {

pub fn report_stop(&mut self) -> eyre::Result<()> {
tcp_send(&mut self.0, &ControlRequest::Stopped)
.wrap_err("failed to send subscribe request to dora-daemon")?;
.wrap_err("failed to report stopped to dora-daemon")?;
match tcp_receive(&mut self.0)
.wrap_err("failed to receive subscribe reply from dora-daemon")?
.wrap_err("failed to receive stopped reply from dora-daemon")?
{
dora_core::daemon_messages::ControlReply::Result(result) => result
.map_err(|e| eyre!(e))


Loading…
Cancel
Save