Fixed error message in boinccmd

This commit is contained in:
Benji Wiebe 2015-04-28 14:17:47 -05:00
parent 4372003eb8
commit 06bb1d031c
1 changed files with 3 additions and 0 deletions

View File

@ -378,10 +378,13 @@ int RPC::parse_reply() {
char buf[256], error_msg[256];
int n;
while (fin.fgets(buf, 256)) {
if (strstr(buf, "boinc_gui_rpc_reply>"))
continue;
if (strstr(buf, "<success")) return 0;
if (parse_int(buf, "<status>", n)) {
return n;
}
if (strstr(buf, "<unauthorized/>")) return ERR_AUTHENTICATOR;
if (parse_str(buf, "<error>", error_msg, sizeof(error_msg))) {
fprintf(stderr, "%s: GUI RPC error: %s\n",
time_to_string(dtime()), error_msg