EEBus: treat data not valid as unavailable (#32204)
This commit is contained in:
parent
f55cc4d000
commit
f85b3b9498
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ import (
|
|||
)
|
||||
|
||||
func WrapError(err error) error {
|
||||
if errors.Is(err, eebusapi.ErrDataNotAvailable) {
|
||||
if errors.Is(err, eebusapi.ErrDataNotAvailable) || errors.Is(err, eebusapi.ErrDataInvalid) {
|
||||
return api.ErrNotAvailable
|
||||
}
|
||||
return err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue