diff --git a/docker/client.py b/docker/client.py index f51a7deb..92296e17 100644 --- a/docker/client.py +++ b/docker/client.py @@ -312,7 +312,7 @@ class Client(requests.Session): if custom_context: if not fileobj: - raise TypeError("You must specify fileobj for a custom context") + raise TypeError("You must specify fileobj with custom_context") context = fileobj elif fileobj is not None: context = utils.mkbuildcontext(fileobj)