Refined error message when timeout is encountered.

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2015-09-02 14:31:30 -07:00
parent e634fe3fd6
commit b110bbe9e3
1 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@ from __future__ import print_function
from __future__ import unicode_literals
import logging
import os
import re
import signal
import sys
@ -68,9 +69,9 @@ def main():
sys.exit(1)
except ReadTimeout as e:
log.error(
"HTTP request took too long to complete. Retry with --verbose to obtain debug information.\n"
"An HTTP request took too long to complete. Retry with --verbose to obtain debug information.\n"
"If you encounter this issue regularly because of slow network conditions, consider setting "
"COMPOSE_HTTP_TIMEOUT to a higher value."
"COMPOSE_HTTP_TIMEOUT to a higher value (current value: %s)." % os.environ.get('COMPOSE_HTTP_TIMEOUT', 60)
)