From 0aab796960647886522a41c48d247595802c887a Mon Sep 17 00:00:00 2001 From: James Date: Mon, 13 Nov 2017 07:23:52 -0500 Subject: [PATCH] Clarify error message --- httpie/input.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/httpie/input.py b/httpie/input.py index 7960cd94..de402b05 100644 --- a/httpie/input.py +++ b/httpie/input.py @@ -302,7 +302,8 @@ class HTTPieArgumentParser(ArgumentParser): """ if self.args.data: self.error('Request body (from stdin or a file) and request ' - 'data (key=value) cannot be mixed.') + 'data (key=value) cannot be mixed. Pass ' + '--ignore-stdin to let key/value take priority.') self.args.data = getattr(fd, 'buffer', fd).read() def _guess_method(self):