diff options
author | Lars Wirzenius <liw@liw.fi> | 2024-01-15 12:34:53 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2024-01-15 14:41:27 +0200 |
commit | c949db7e6f2418ff141de61c69d9d12ac21de960 (patch) | |
tree | f7ab007248e8fe13df4cc74ac96b5b7fa5ea3123 | |
parent | 3a20cb66e627478ed42d6c4c181b81c522b6a35f (diff) | |
download | radicle-native-ci-c949db7e6f2418ff141de61c69d9d12ac21de960.tar.gz |
fix: write the run log
It turns out that writing the to a file is sometimes a useful thing to
do. Who could've foreseen this. Well, they're using a paper bag on
their head as they're writing this commit message.
Signed-off-by: Lars Wirzenius <liw@liw.fi>
-rw-r--r-- | src/bin/radicle-native-ci.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/radicle-native-ci.rs b/src/bin/radicle-native-ci.rs index 43027dc..ef05814 100644 --- a/src/bin/radicle-native-ci.rs +++ b/src/bin/radicle-native-ci.rs @@ -220,6 +220,11 @@ impl<'a> Runner<'a> { self.builder.result(result); + if let Err(e) = self.run_log.write() { + self.log + .writeln(&format!("failed to write run log: {}", e))?; + } + Ok(()) } } |