Checking the error code and the contents of the return variable.
_________________________
There are two types of vessels, submarines and targets.