You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
202 B
13 lines
202 B
2 weeks ago
|
package common
|
||
|
|
||
|
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
|
||
|
}
|