WebThingsIO / onvif-adapter

ONVIF Profile S video camera adapter
Mozilla Public License 2.0
10 stars 6 forks source link

Show more user friendly message when ffmmpeg is not available? #17

Closed tssk closed 5 years ago

tssk commented 5 years ago

I think some message like "Could not detect installed ffmpeg version" would be more understandable insted of this:

2019-09-07 14:43:32.613 ERROR  : onvif: TypeError: Cannot read property 'split' of null
2019-09-07 14:43:32.613 ERROR  : onvif:     at new OnvifDevice (/home/safarik/.mozilla-iot/addons/onvif-adapter/lib/onvif-device.js:64:33)
2019-09-07 14:43:32.614 ERROR  : onvif:     at camera.core.getScopes.then (/home/safarik/.mozilla-iot/addons/onvif-adapter/lib/onvif-adapter.js:67:23)
2019-09-07 14:43:32.614 ERROR  : onvif:     at <anonymous>
2019-09-07 14:43:32.615 ERROR  : onvif:     at process._tickCallback (internal/process/next_tick.js:189:7)
2019-09-07 14:43:34.369 ERROR  : onvif: Failed to initialize device at undefined: TypeError: Cannot read property 'split' of null