forked from platformio/platformio-core
Minor fix to error message
This commit is contained in:
@@ -342,7 +342,8 @@ def get_api_result(path, params=None, data=None):
|
|||||||
raise exception.APIRequestError(e)
|
raise exception.APIRequestError(e)
|
||||||
except requests.exceptions.ConnectionError:
|
except requests.exceptions.ConnectionError:
|
||||||
raise exception.APIRequestError(
|
raise exception.APIRequestError(
|
||||||
"Could not connect to PlatformIO Registry Service")
|
"Could not connect to PlatformIO Registry Service. "
|
||||||
|
"Please try later.")
|
||||||
except ValueError:
|
except ValueError:
|
||||||
raise exception.APIRequestError(
|
raise exception.APIRequestError(
|
||||||
"Invalid response: %s" % r.text.encode("utf-8"))
|
"Invalid response: %s" % r.text.encode("utf-8"))
|
||||||
|
Reference in New Issue
Block a user