made it so can wrap errors

master
Charles Iliya Krempeaux 2023-09-23 05:24:59 +09:00
parent 6dcd8d3522
commit 231149d185
1 changed files with 1 additions and 4 deletions

View File

@ -5,8 +5,5 @@ import (
)
func Errorf(format string, a ...interface{}) error {
var s string = fmt.Sprintf(format, a...)
return Error(s)
return fmt.Errorf(format, a...)
}