Skip to content

Commit

Permalink
fix: undo hasty changes
Browse files Browse the repository at this point in the history
  • Loading branch information
placer14 committed Sep 28, 2021
1 parent c3faadf commit 89d7a72
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build/panic_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 89d7a72

Please sign in to comment.