Show error message and return code when invalid path passed to rospd.