summaryrefslogtreecommitdiff
path: root/pygnulib/constants.py
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2022-07-31 22:35:30 +0200
committerBruno Haible <bruno@clisp.org>2022-07-31 23:52:55 +0200
commitad5b5ec0c8c879678373dd210c00683ca5ee51dd (patch)
tree08db9f9e42687d3d90811e9c1beb35f6b272ef8f /pygnulib/constants.py
parent79e45321bc42fd620bb0f808a1727fd3ae8f9fb0 (diff)
downloadgnulib-ad5b5ec0c8c879678373dd210c00683ca5ee51dd.tar.gz
gnulib-tool.py: Write errors to stderr, not stdout.
* pygnulib/constants.py: Write error messages to stderr, not stdout.
Diffstat (limited to 'pygnulib/constants.py')
-rw-r--r--pygnulib/constants.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygnulib/constants.py b/pygnulib/constants.py
index 10bd363f5b..91a2958eb3 100644
--- a/pygnulib/constants.py
+++ b/pygnulib/constants.py
@@ -213,7 +213,7 @@ def execute(args, verbose):
try: # Try to run
retcode = sp.call(args)
except Exception as error:
- print(error)
+ sys.stderr.write(str(error) + '\n')
sys.exit(1)
else:
# Commands like automake produce output to stderr even when they succeed.
@@ -223,7 +223,7 @@ def execute(args, verbose):
try: # Try to run
retcode = sp.call(xargs, shell=True)
except Exception as error:
- print(error)
+ sys.stderr.write(str(error) + '\n')
sys.exit(1)
if retcode == 0:
os.remove(temp)