mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-23 03:52:27 +00:00
update tutorial basic-cli release
This commit is contained in:
parent
25f1d8d54f
commit
6d115af11a
2 changed files with 20 additions and 7 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue