Closed Magalex2x14 closed 4 years ago
Is this where we changed the error handling to pass pylint? Not sure what your issue exactly is? Can you clarify?
in my previous comment, an example of an error that occurs if hcidump is not installed. It seemed to me then, that in the place where popen
is called, it is worth catching the FileNotFound exception and return from setup_platform
function. But now I'm not sure, because the python error in the log speaks for itself. What do you think?
You can write in the log in human language that an installed hcitool or/and hcidump is required for the platform to work... For example.
Yes, to my opinion, human readable errors messages are much better than these cryptic messages, especially for the less experienced user. So, yes, I would be in favor for adding a human readable error message, if possible with instructions how to solve.
No longer relevant since 0.5.0
Here are the details of the error in the absence of hcidump: