# fix\(cost\): keep healthy costs when error flag is falsy \(\#358\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/9b6a875d0fcd1e8b12dfda5681fdb4b042ac1a76)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: 9b6a875d0fcd1e8b12dfda5681fdb4b042ac1a76

Requested commit: 9b6a875d0fcd1e8b12dfda5681fdb4b042ac1a76

Commit: 9b6a875d0fcd1e8b12dfda5681fdb4b042ac1a76

Tree: bf1aa14348d045302cd3e3cbd500a91fdc3d62da

Author: Simone

Committer: GitHub

## Message

```
fix(cost): keep healthy costs when error flag is falsy (#358)

costRecordHasError treated any present non-null error key as failure,
so a record with error:false dropped its totals and reported the
provider failed. Only truthy errors (and non-blank strings) now count
as failure, matching the strict provider-snapshot check.
```

## Parents

- [2b545120192d7d0bfc927de60144428078870a63](https://git.cafe/lucenx/codexbar-plasma/commit/2b545120192d7d0bfc927de60144428078870a63?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/9b6a875d0fcd1e8b12dfda5681fdb4b042ac1a76?format=markdown)
