copy bmerr stuff from bm
This commit is contained in:
17
exerr/errinit.go
Normal file
17
exerr/errinit.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package exerr
|
||||
|
||||
type ErrorPackageConfig struct {
|
||||
LogTraces bool
|
||||
RecursiveErrors bool
|
||||
}
|
||||
|
||||
var pkgconfig = ErrorPackageConfig{
|
||||
LogTraces: true,
|
||||
}
|
||||
|
||||
// Init initializes the exerr packages
|
||||
// Must be called at the program start, before (!) any errors
|
||||
// Is not thread-safe
|
||||
func Init(cfg ErrorPackageConfig) {
|
||||
pkgconfig = cfg
|
||||
}
|
||||
Reference in New Issue
Block a user