diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2024-03-25 09:56:32 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-26 17:11:11 +0000 |
commit | 6366ea8d9c284d10bb8f4129004b55239d9022c0 (patch) | |
tree | ef27738d33e61bcec8fe45bcccef019a9c8b8d51 | |
parent | 741bef3755fde7bae1386aad575ea704d9fe0969 (diff) | |
download | bitbake-contrib-6366ea8d9c284d10bb8f4129004b55239d9022c0.tar.gz |
bitbake-hashclient: Warn on bad .netrc
If there is an error parsing .netrc, warn the user on stderr
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bin/bitbake-hashclient | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/bitbake-hashclient b/bin/bitbake-hashclient index 47dd27cd3..610787ed2 100755 --- a/bin/bitbake-hashclient +++ b/bin/bitbake-hashclient @@ -346,6 +346,8 @@ def main(): login, _, password = auth except FileNotFoundError: pass + except netrc.NetrcParseError as e: + sys.stderr.write(f"Error parsing {e.filename}:{e.lineno}: {e.msg}\n") func = getattr(args, 'func', None) if func: |