equal
deleted
inserted
replaced
763 x = xmlnode_get_tag(packet->x, "error"); |
763 x = xmlnode_get_tag(packet->x, "error"); |
764 p = xmlnode_get_attrib(x, "code"); if (p) code = atoi(p); |
764 p = xmlnode_get_attrib(x, "code"); if (p) code = atoi(p); |
765 p = xmlnode_get_attrib(x, "id"); if (p) name = p; |
765 p = xmlnode_get_attrib(x, "id"); if (p) name = p; |
766 p = xmlnode_get_tag_data(packet->x, "error"); if (p) desc = p; |
766 p = xmlnode_get_tag_data(packet->x, "error"); if (p) desc = p; |
767 |
767 |
|
768 #if 0 |
768 switch(code) { |
769 switch(code) { |
769 case 401: /* Unauthorized */ |
770 case 401: /* Unauthorized */ |
770 case 302: /* Redirect */ |
771 case 302: /* Redirect */ |
771 case 400: /* Bad request */ |
772 case 400: /* Bad request */ |
772 case 402: /* Payment Required */ |
773 case 402: /* Payment Required */ |
799 jhook.regerr = desc; |
800 jhook.regerr = desc; |
800 |
801 |
801 } |
802 } |
802 */ |
803 */ |
803 } |
804 } |
|
805 #endif |
804 scr_LogPrint("Error code from server (%d)", code); |
806 scr_LogPrint("Error code from server (%d)", code); |
805 |
807 |
806 } |
808 } |
807 break; |
809 break; |
808 |
810 |