fixed thrown error check

Because if there's no ``` 'find module' ``` and ```-1``` value is given it's equal to ```true``` and you'll never know what hit you.

Right now basically on any error thrown you'll get ``` "Connection protocol not supported" ``` , which is wrong

Please review.