[Pkg-owncloud-commits] [python-owncloud] 16/96: issue #1, catch user/password problems and tell the user

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri Nov 22 01:28:23 UTC 2013


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository python-owncloud.

commit f846d82d17713896d3a5b656149f034195194527
Author: craig <craig at lasalle.yumaed.org>
Date:   Mon Mar 11 08:15:17 2013 -0700

    issue #1, catch user/password problems and tell the user
---
 csync.py |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/csync.py b/csync.py
index ac03a11..41120a5 100755
--- a/csync.py
+++ b/csync.py
@@ -157,6 +157,9 @@ def error(ctx, cmd, returnCode):
 	"""handle library errors"""
 	errNum = csynclib.csync_get_error(ctx)
 	errMsg = csynclib.csync_get_error_string(ctx)
+	if not errMsg:
+		if errNum == 20 and cmd == 'csync_update':
+			errMsg = 'This is an authentication problem with the server, check user/pass'
 	print 'ERROR: %s exited %s, error %s: %s' % (
 		cmd,
 		returnCode,

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