rumble-livestream-lib-go/error.go
2023-12-08 13:55:04 -05:00

15 lines
263 B
Go

package rumblelivestreamlib
import "fmt"
const pkgName = "rumblelivestreamlib"
func pkgErr(prefix string, err error) error {
pkgErr := pkgName
if prefix != "" {
pkgErr = fmt.Sprintf("%s: %s", pkgErr, prefix)
}
return fmt.Errorf("%s: %v", pkgErr, err)
}