Fossil SCM
Doh... accidentally changed resultCodes from strings to ints during refactoring.
Commit
36384da86173c72cbd52d6918c380b65befdf804
Parent
824ed5fb65423e5…
1 file changed
+1
-1
+1
-1
| --- src/json.c | ||
| +++ src/json.c | ||
| @@ -1332,11 +1332,11 @@ | ||
| 1332 | 1332 | pMsg = g.zErrMsg; |
| 1333 | 1333 | if(!pMsg){ |
| 1334 | 1334 | pMsg = json_err_str(resultCode); |
| 1335 | 1335 | } |
| 1336 | 1336 | } |
| 1337 | - tmp = cson_value_new_integer(resultCode); | |
| 1337 | + tmp = json_new_string(json_rc_cstr(resultCode)); | |
| 1338 | 1338 | SET(FossilJsonKeys.resultCode); |
| 1339 | 1339 | } |
| 1340 | 1340 | |
| 1341 | 1341 | if( pMsg && *pMsg ){ |
| 1342 | 1342 | tmp = cson_value_new_string(pMsg, strlen(pMsg)); |
| 1343 | 1343 |
| --- src/json.c | |
| +++ src/json.c | |
| @@ -1332,11 +1332,11 @@ | |
| 1332 | pMsg = g.zErrMsg; |
| 1333 | if(!pMsg){ |
| 1334 | pMsg = json_err_str(resultCode); |
| 1335 | } |
| 1336 | } |
| 1337 | tmp = cson_value_new_integer(resultCode); |
| 1338 | SET(FossilJsonKeys.resultCode); |
| 1339 | } |
| 1340 | |
| 1341 | if( pMsg && *pMsg ){ |
| 1342 | tmp = cson_value_new_string(pMsg, strlen(pMsg)); |
| 1343 |
| --- src/json.c | |
| +++ src/json.c | |
| @@ -1332,11 +1332,11 @@ | |
| 1332 | pMsg = g.zErrMsg; |
| 1333 | if(!pMsg){ |
| 1334 | pMsg = json_err_str(resultCode); |
| 1335 | } |
| 1336 | } |
| 1337 | tmp = json_new_string(json_rc_cstr(resultCode)); |
| 1338 | SET(FossilJsonKeys.resultCode); |
| 1339 | } |
| 1340 | |
| 1341 | if( pMsg && *pMsg ){ |
| 1342 | tmp = cson_value_new_string(pMsg, strlen(pMsg)); |
| 1343 |