chore: clarify version mismatch message

This commit is contained in:
Ilya Zlobintsev 2024-11-16 22:37:14 +02:00
parent a26bcec806
commit f832369bab

View File

@ -161,7 +161,7 @@ impl AsyncComponent for AppModel {
let devices = devices_buf.inner().expect("Could not access devices");
if system_info.version != GUI_VERSION || system_info.commit.as_deref() != Some(GIT_COMMIT) {
let err = anyhow!("Version mismatch between GUI and daemon ({GUI_VERSION}-{GIT_COMMIT} vs {}-{})! Make sure you have restarted the service if you have updated LACT.", system_info.version, system_info.commit.as_deref().unwrap_or_default());
let err = anyhow!("Version mismatch between GUI and daemon ({GUI_VERSION}-{GIT_COMMIT} vs {}-{})! If you have updated LACT, you need to restart the service with `sudo systemctl restart lactd`.", system_info.version, system_info.commit.as_deref().unwrap_or_default());
sender.input(AppMsg::Error(err.into()));
}