Better uninstall version error (#113)

* More useful error message on version incompat

* Even more useful
This commit is contained in:
Ana Hobden 2022-12-12 08:21:46 -08:00 committed by GitHub
parent 1a90f50962
commit fede228894
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -283,7 +283,7 @@ fn ensure_version<'de, D: Deserializer<'de>>(d: D) -> Result<Version, D::Error>
Ok(plan_version)
} else {
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",
)))
}
}