[Pkg-owncloud-commits] [python-owncloud] 25/33: Added csync version to error output
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Nov 22 01:49:48 UTC 2013
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch upstream
in repository python-owncloud.
commit 5f2aaa11cb98df168c598c7127996ffc71d69470
Author: hefee <hefee at netzguerilla.net>
Date: Sat Nov 16 02:06:27 2013 +0100
Added csync version to error output
---
csync/csync.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/csync/csync.py b/csync/csync.py
index 157afc0..bfe0f67 100755
--- a/csync/csync.py
+++ b/csync/csync.py
@@ -192,6 +192,7 @@ def log(ctx, verbosity, function, buffer, userdata):
def error(ctx, cmd, returnCode):
"""handle library errors"""
+ libVersion = csynclib.csync_version(0,40,1)
errNum = csynclib.csync_get_error(ctx)
errMsg = csynclib.csync_get_error_string(ctx)
if not errMsg:
@@ -199,9 +200,10 @@ def error(ctx, cmd, returnCode):
errMsg = 'This is an authentication problem with the server, check user/pass.'
if errNum == csynclib.CSYNC_ERR_NOT_FOUND and cmd == 'csync_update':
errMsg = 'This is a remote folder destination issue, check that the remote folder exists on ownCloud.'
- print 'ERROR: %s exited %s, error %s: %s' % (
+ print 'ERROR: %s exited with %s, csync(%s) error %s: %s' % (
cmd,
returnCode,
+ libVersion,
errNum,
errMsg,
)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/python-owncloud.git
More information about the Pkg-owncloud-commits
mailing list