diff options
Diffstat (limited to 'crates/typst-cli/src/update.rs')
| -rw-r--r-- | crates/typst-cli/src/update.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/typst-cli/src/update.rs b/crates/typst-cli/src/update.rs index cfb93454..b33e0519 100644 --- a/crates/typst-cli/src/update.rs +++ b/crates/typst-cli/src/update.rs @@ -110,9 +110,9 @@ impl Release { }; match download(&url) { - Ok(response) => response - .into_json() - .map_err(|err| eco_format!("unable to parse JSON response: {err}")), + Ok(response) => response.into_json().map_err(|err| { + eco_format!("failed to parse release information ({err})") + }), Err(ureq::Error::Status(404, _)) => { bail!("release not found (searched at {url})") } |
