tools: print errors to stderr

This commit is contained in:
Yaroslav Chvanov
2023-03-04 03:34:12 +03:00
parent 0e3f909264
commit 4b8ac177d1
4 changed files with 8 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/sh
if [ -z "$MESON_SOURCE_ROOT" ]; then
echo "Expected \$MESON_SOURCE_ROOT to be set. Are you sure you are running this through ninja?"
echo >&2 "Expected \$MESON_SOURCE_ROOT to be set. Are you sure you are running this through ninja?"
exit 100
fi
@@ -9,7 +9,7 @@ cd "$MESON_SOURCE_ROOT" || exit 101
files=$(git ls-files "*.py" "*.py.in")
if [ -z "$files" ]; then
echo "Git didn't find any files"
echo >&2 "Git didn't find any files"
exit 77
fi