1
0

refactor: errors

This commit is contained in:
2024-02-20 11:37:19 +00:00
parent 4e92950929
commit 6036211172
6 changed files with 10 additions and 10 deletions

View File

@@ -940,7 +940,7 @@ func (cmd PewCmd) performCI(ka config.Artifact) (err error) {
swg.Wait()
if !found {
err = errors.New("No supported kernels found")
err = errors.New("no supported kernels found")
}
return
@@ -949,7 +949,7 @@ func (cmd PewCmd) performCI(ka config.Artifact) (err error) {
func kernelMask(kernel string) (km config.Target, err error) {
parts := strings.Split(kernel, ":")
if len(parts) != 2 {
err = errors.New("Kernel is not 'distroType:regex'")
err = errors.New("kernel is not 'distroType:regex'")
return
}