There are 8 cases of fatalError() in the non-test code. This is really not acceptable for production code.
There are several remedies:
- These really are coding errors. I don't understand the code well enough yet to know, but if that is the case and since these are all related to
knownCharacteristics, then the fatalError() message should include the the known characteristics. However, since known characteristics are specific to a device I don't see how this is the correct solution.
- Replace
fatalError()s with correct error handling code.
There are 8 cases of
fatalError()in the non-test code. This is really not acceptable for production code.There are several remedies:
knownCharacteristics, then thefatalError()message should include the the known characteristics. However, since known characteristics are specific to a device I don't see how this is the correct solution.fatalError()s with correct error handling code.