- Timestamp:
- 2015-05-06T15:48:16Z (10 years ago)
- Children:
- 6f903c3
- Parents:
- f81d8b8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/oauth2.c
rf81d8b8 r1a81c83 126 126 const char *type = json_object_get_string(json_object(e), "type"); 127 127 JSON_Value *code_o = json_object_get_value(json_object(e), "code"); 128 int code = 0; 129 130 if (json_type(code_o) == JSONNumber) { 131 code = json_value_get_number(code_o); 132 } 133 128 int code = json_value_get_integer(code_o); 134 129 return g_strdup_printf("Error %d: %s", code, msg ? msg : type ? type : "Unknown error"); 135 130 } else if (json_type(e) == JSONString) {
Note: See TracChangeset
for help on using the changeset viewer.