fix: undo hasty changes

This commit is contained in:
Mike Greenberg 2021-09-28 11:30:35 -04:00
parent c3faadf749
commit 89d7a72a4b

View File

@ -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
}