[Pkg-owncloud-commits] [python-owncloud] 23/33: using ERRNAMES instead of there value

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 1cc93cdc5dbac83784e1c65ecf53e427e816ce2c
Author: hefee <hefee at netzguerilla.net>
Date:   Sat Nov 16 01:46:01 2013 +0100

    using ERRNAMES instead of there value
---
 csync/csync.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/csync/csync.py b/csync/csync.py
index 22d0428..157afc0 100755
--- a/csync/csync.py
+++ b/csync/csync.py
@@ -195,9 +195,9 @@ def error(ctx, cmd, returnCode):
 	errNum = csynclib.csync_get_error(ctx)
 	errMsg = csynclib.csync_get_error_string(ctx)
 	if not errMsg:
-		if errNum == 21 and cmd == 'csync_update':
+		if errNum == csynclib.CSYNC_ERR_AUTH_SERVER and cmd == 'csync_update':
 			errMsg = 'This is an authentication problem with the server, check user/pass.'
-		if errNum == 27 and cmd == 'csync_update':
+		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' % (
 		cmd,

-- 
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