mirror of
https://github.com/Hopiu/lychee.git
synced 2026-03-29 02:40:33 +00:00
Print errors with a different format for easier clickability (fixes #532)
This commit is contained in:
parent
d7de8ad38e
commit
0fc5fc9ffe
2 changed files with 4 additions and 2 deletions
|
|
@ -276,7 +276,7 @@ mod cli {
|
|||
.assert()
|
||||
.failure()
|
||||
.code(2)
|
||||
.stdout(contains("https://github.com/mre/idiomatic-rust-doesnt-exist-man: \
|
||||
.stdout(contains("https://github.com/mre/idiomatic-rust-doesnt-exist-man | \
|
||||
GitHub token not specified. To check GitHub links reliably, use `--github-token` flag / `GITHUB_TOKEN` env var."));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,9 @@ impl Display for ResponseBody {
|
|||
}
|
||||
|
||||
// Add a separator between the URI and the additional details below.
|
||||
write!(f, ": ")?;
|
||||
// Note: To make the links clickable in some terminals,
|
||||
// we add a space before the separator.
|
||||
write!(f, " | ")?;
|
||||
|
||||
match &self.status {
|
||||
Status::Ok(code) => write!(f, "{}", code.canonical_reason().unwrap_or("OK")),
|
||||
|
|
|
|||
Loading…
Reference in a new issue