Skip to content

Commit 78547b3

Browse files
committed
github: use short, single-line version of TOML error
1 parent 42e0969 commit 78547b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

github/database/src/tables/check_suite.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ impl JobFile {
9595
/*
9696
* Parse the front matter as TOML:
9797
*/
98-
let toml = toml::from_str::<FrontMatter>(&frontmatter)
99-
.map_err(|e| anyhow!("TOML front matter in {path:?}: {e}"))?;
98+
let toml =
99+
toml::from_str::<FrontMatter>(&frontmatter).map_err(|e| {
100+
anyhow!("TOML front matter in {path:?}: {}", e.message())
101+
})?;
100102

101103
if !toml.enable {
102104
/*

0 commit comments

Comments
 (0)