Доработка
This commit is contained in:
14
pkg/util/errors.go
Normal file
14
pkg/util/errors.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func Check(e error, msg string) {
|
||||
if e != nil {
|
||||
fmt.Println(msg)
|
||||
fmt.Println(e)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user