dorfmap_set_remote: add error handling