remote-curl: use error instead of fprintf(stderr)