Small config and my own little lib.

This commit is contained in:
Zed A. Shaw 2025-07-10 10:18:43 -04:00
parent a2adf8ad67
commit cb537328ff
3 changed files with 105 additions and 0 deletions

12
zed/errors.go Normal file
View 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
}