Add hint about possibly needed restart after upgrade

This commit is contained in:
Arne Beer 2020-05-01 21:49:13 +02:00
parent b5b43ba5b4
commit 8269485799

View file

@ -1,4 +1,4 @@
use ::anyhow::Result;
use ::anyhow::{Context, Result};
use ::async_std::net::TcpStream;
use ::async_std::prelude::*;
use ::byteorder::{BigEndian, ReadBytesExt, WriteBytesExt};
@ -80,7 +80,8 @@ pub async fn receive_message(socket: &mut TcpStream) -> Result<Message> {
let payload_bytes = receive_bytes(socket).await?;
// Deserialize the message
let message: Message = bincode::deserialize(&payload_bytes)?;
let message: Message = bincode::deserialize(&payload_bytes)
.context("In case you updated Pueue, try restarting the daemon. Otherwise please report this")?;
debug!("Received message: {:?}", message);
Ok(message)