🔊 Write panic logs to journals
This commit is contained in:
parent
7c6aa96eff
commit
4dfb50b346
|
@ -1,8 +1,11 @@
|
|||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
// errCheck helps debug critical errors without warnings from 'gocyclo' linter
|
||||
func errCheck(err error) {
|
||||
if err != nil {
|
||||
fmt.Sprintln(err.Error())
|
||||
waitForwards.Wait() // Wait what all users get announcement message
|
||||
panic(err.Error())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue