cmd/stcrashreceiver, lib/db: Improve panic message handling (#7029)

This commit is contained in:
Simon Frei
2020-10-08 17:37:45 +02:00
committed by GitHub
parent 9d09fd6af3
commit d828adb648
5 changed files with 111 additions and 5 deletions
+1 -2
View File
@@ -531,6 +531,5 @@ func fatalError(err error, opStr string, db *Lowlevel) {
}
}
}
l.Warnf("Fatal error: %v: %v", opStr, err)
panic(err)
warnAndPanic(fmt.Errorf("%v: %w:", opStr, err))
}