Skip to content

Commit bb3950e

Browse files
Merge pull request #1699 from ehuss/error-messages
Add some extra error information in the logs
2 parents a67f893 + 1d0bffd commit bb3950e

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/config.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,13 @@ impl fmt::Display for ConfigurationError {
300300
Add a `triagebot.toml` in the root of the default branch to enable it."
301301
),
302302
ConfigurationError::Toml(e) => {
303-
write!(f, "Malformed `triagebot.toml` in default branch.\n{}", e)
303+
write!(f, "Malformed `triagebot.toml` in default branch.\n{e}")
304304
}
305-
ConfigurationError::Http(_) => {
306-
write!(f, "Failed to query configuration for this repository.")
305+
ConfigurationError::Http(e) => {
306+
write!(
307+
f,
308+
"Failed to query configuration for this repository.\n{e:?}"
309+
)
307310
}
308311
}
309312
}

src/github.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@ impl GithubClient {
18841884
Ok(res) => res.is_empty(),
18851885
Err(e) => {
18861886
log::warn!(
1887-
"failed to search for user commits in {} for author {author}: {e}",
1887+
"failed to search for user commits in {} for author {author}: {e:?}",
18881888
repo.full_name
18891889
);
18901890
false

0 commit comments

Comments
 (0)