improve error message for remote repo