update tutorial basic-cli release

This commit is contained in:
Anton-4 2023-01-23 20:11:32 +01:00
parent 25f1d8d54f
commit 6d115af11a
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937
2 changed files with 20 additions and 7 deletions

View file

@ -56,7 +56,20 @@ impl Metadata {
pub fn read_from_file(metadata_filename: &Path) -> Self {
let input =
std::fs::File::open(metadata_filename).unwrap_or_else(|e| internal_error!("{}", e));
std::fs::File::open(metadata_filename)
.unwrap_or_else(
|e| internal_error!(r#"
Error:
{}
> This may occur when using a release of roc that relies on a specific metadata format like 'rm2' and the imported platform only has an older metadata format available, like rm1.
The platform you are using can be found in the header of your main.roc: `packages {{ pf: <PLATFORM>}}`.
You should check if a more recent version of the platform is available.
If not, you should notify the author of the platform about this issue.
"#, e)
);
match deserialize_from(BufReader::new(input)) {
Ok(data) => data,