remote: improved error reporting Several places in the remote code identify an error and then swallow it; return the error.