[X2Go-Commits] [maintenancescripts] 01/01: git/hooks/update-script._irkerhook.py_: spit out IOErrors when accessing the webview to git clients to actually know why accessing the page failed.
git-admin at x2go.org
git-admin at x2go.org
Mon Mar 6 06:01:41 CET 2017
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository maintenancescripts.
commit 4b5f7ad074cce66c69701b122b3873391596d741
Author: Mihai Moldovan <ionic at ionic.de>
Date: Mon Mar 6 06:01:30 2017 +0100
git/hooks/update-script._irkerhook.py_: spit out IOErrors when accessing the webview to git clients to actually know why accessing the page failed.
---
git/hooks/update-script._irkerhook.py_ | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/git/hooks/update-script._irkerhook.py_ b/git/hooks/update-script._irkerhook.py_
index 2369669..889dbd4 100755
--- a/git/hooks/update-script._irkerhook.py_
+++ b/git/hooks/update-script._irkerhook.py_
@@ -86,7 +86,8 @@ class Commit:
self.url = webview
else:
self.url = webview
- except IOError:
+ except IOError as e:
+ print "IOError: {0}:{1}".format(e.errno, e.strerror)
self.url = ""
res = self.template % self.__dict__
return unicode(res, 'UTF-8') if not isinstance(res, unicode) else res
--
Alioth's /srv/git/code.x2go.org/maintenancescripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/maintenancescripts.git
More information about the x2go-commits
mailing list