aboutsummaryrefslogtreecommitdiff
path: root/internal/assets/assets.go
blob: 47a5936d5c2626998c394487190767cb7fd7ce35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package assets

import (
	"strings"
)

// IsErrNotFound returns true if the error is asset not found.
func IsErrNotFound(err error) bool {
	if err == nil {
		return false
	}
	return strings.Contains(err.Error(), "not found")
}