From bdcd6f87bfe642ada79c6274630daf014863247c Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 9 Oct 2021 21:17:37 +0200 Subject: [PATCH] Make error message for broken file links more understandable --- lychee-lib/src/types/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lychee-lib/src/types/error.rs b/lychee-lib/src/types/error.rs index 08391cb..84e9840 100644 --- a/lychee-lib/src/types/error.rs +++ b/lychee-lib/src/types/error.rs @@ -115,7 +115,7 @@ impl Display for ErrorKind { Self::UrlParseError(s, (url_err, None)) => { write!(f, "Cannot parse {} as website url ({})", s, url_err) } - Self::InvalidFilePath(u) => write!(f, "Invalid file URI: {}", u), + Self::InvalidFilePath(u) => write!(f, "Cannot find file {}", u), Self::InvalidURI(u) => write!(f, "Invalid URI: {}", u), Self::InvalidUrlFromPath(p) => { write!(f, "Invalid path to URL conversion: {}", p.display())