Skip to content

Commit

Permalink
Improve message
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Aug 31, 2023
1 parent f990c3d commit 4afecf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl Lockfile {
None => transforms::transform1_to_2(transforms::transform2_to_3(value)),
Some(version) => {
return Err(Error::ParseError(format!(
"Unsupported lockfile version: {}",
"Unsupported lockfile version '{}'. Try upgrading Deno or recreating the lockfile.",
version
)))
}
Expand Down Expand Up @@ -406,7 +406,7 @@ mod tests {
)
.err()
.unwrap().to_string(),
"Unable to parse contents of lockfile. Unsupported lockfile version: 2000".to_string()
"Unable to parse contents of lockfile. Unsupported lockfile version '2000'. Try upgrading Deno or recreating the lockfile.".to_string()
);
}

Expand Down

0 comments on commit 4afecf6

Please sign in to comment.