From 19b7da4e2b4974cff13245087b6b4845047a633d Mon Sep 17 00:00:00 2001 From: David Vorick Date: Thu, 22 Oct 2015 09:20:14 -0400 Subject: [PATCH] add help message for http error 400 --- network.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/network.c b/network.c index 49cdf7a..ff12eff 100644 --- a/network.c +++ b/network.c @@ -29,7 +29,10 @@ CURL *curl; int check_http_response(CURL *curl) { long http_code = 0; curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &http_code); - if (http_code != 200) { + if (http_code == 400) { + fprintf(stderr, "HTTP error %lu - check that the wallet is unlocked\n", http_code); + return 1; + } else if (http_code != 200) { fprintf(stderr, "HTTP error %lu\n", http_code); return 1; }