Small config and my own little lib.
This commit is contained in:
parent
a2adf8ad67
commit
cb537328ff
3 changed files with 105 additions and 0 deletions
12
zed/errors.go
Normal file
12
zed/errors.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
package zed
|
||||
|
||||
import (
|
||||
"log"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func Fail(err error, format string, v ...any) error {
|
||||
err_format := fmt.Sprintf("ERROR: %v; %s", err, format)
|
||||
log.Printf(err_format, v...)
|
||||
return err
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue