Better uninstall version error (#113)
* More useful error message on version incompat * Even more useful
This commit is contained in:
parent
1a90f50962
commit
fede228894
|
@ -283,7 +283,7 @@ fn ensure_version<'de, D: Deserializer<'de>>(d: D) -> Result<Version, D::Error>
|
||||||
Ok(plan_version)
|
Ok(plan_version)
|
||||||
} else {
|
} else {
|
||||||
Err(D::Error::custom(&format!(
|
Err(D::Error::custom(&format!(
|
||||||
"This version of Harmonic ({harmonic_version}) is not compatible with this plan's version ({plan_version}), please use a compatible version (according to Semantic Versioning)",
|
"This version of Harmonic ({harmonic_version}) is not compatible with this plan's version ({plan_version}), check for a compatible version at `/nix/harmonic` or download the matching release from https://github.com/DeterminateSystems/harmonic/releases",
|
||||||
)))
|
)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue