From 89d7a72a4bad19c241672878ac36f3aec19e6d3a Mon Sep 17 00:00:00 2001 From: Mike Greenberg Date: Tue, 28 Sep 2021 11:30:35 -0400 Subject: [PATCH] fix: undo hasty changes --- build/panic_reporter.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build/panic_reporter.go b/build/panic_reporter.go index e8d10eed0..617d619eb 100644 --- a/build/panic_reporter.go +++ b/build/panic_reporter.go @@ -58,7 +58,7 @@ func GeneratePanicReport(persistPath, repoPath, label string) { } } - err := os.MkdirAll(reportPath, 0644) + err := os.MkdirAll(reportPath, 0755) if err != nil { panicLog.Error(err.Error()) return @@ -156,7 +156,11 @@ func writeJournalTail(tailLen int, repoPath, file string) { } break } - if _, err := f.Write(append(line, "\n"...)); err != nil { + if _, err := f.Write(line); err != nil { + panicLog.Error(err.Error()) + break + } + if _, err := f.Write([]byte("\n")); err != nil { panicLog.Error(err.Error()) break }