[sysadmin-bin] Improve error message



commit 1c91ec10f26309e3e0ea3a364eea580583be4929
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Oct 15 19:15:03 2019 +0200

    Improve error message

 git/post-receive-mirror-github | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/git/post-receive-mirror-github b/git/post-receive-mirror-github
index 030cd45..b7b80a5 100755
--- a/git/post-receive-mirror-github
+++ b/git/post-receive-mirror-github
@@ -235,7 +235,7 @@ def main():
             except subprocess.CalledProcessError:
                 out = open(out.name, "r")
                 err = open(err.name, "r")
-                raise Exception("Error trying to push repo %s/%s\nSTDOUT:\n%s\nSTDERR\n%s" % (organization, 
repo_name, out.read(), err.read()))
+                raise Exception("Error trying to push repo %s/%s\nSTDOUT:\n%s\nSTDERR\n%s\nGitHub branches: 
%s\nLocal branches: %s\nDefault branch: %s" % (organization, repo_name, out.read(), err.read(), branches, 
settings['branches'], default_branch))
 
 
 if __name__ == "__main__":


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]