From 4afecf62784838a806c64d2d47611b69d93e5374 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 31 Aug 2023 18:24:06 -0400 Subject: [PATCH] Improve message --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 09a5bdf..1f2f566 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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 ))) } @@ -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() ); }