assets.go 227 B

12345678910111213
  1. package assets
  2. import (
  3. "strings"
  4. )
  5. // IsErrNotFound returns true if the error is asset not found.
  6. func IsErrNotFound(err error) bool {
  7. if err == nil {
  8. return false
  9. }
  10. return strings.Contains(err.Error(), "not found")
  11. }