From c2ffdd588fb22e9ea1328a8a6734cf09ad5d6c56 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Nov 21 2018 12:21:14 +0000 Subject: The aclchecker script must report errors to stderr Otherwise the error message gets cut and the user does not see it and ends up with a weird error instead: ``fatal: protocol error: bad line length character: No s`` (While it should be: `No such project`). Signed-off-by: Pierre-Yves Chibon --- diff --git a/files/aclchecker.py b/files/aclchecker.py index 203da6d..049b4bc 100644 --- a/files/aclchecker.py +++ b/files/aclchecker.py @@ -80,7 +80,7 @@ result = resp.json() if not result["access"]: # The user does not have access to this repo, or project does # not exist. Whatever it is, no access. - print("No such repository") + print("No such repository", file=sys.stderr) sys.exit(1)