diff options
author | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2008-10-09 20:23:42 +0000 |
---|---|---|
committer | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2008-10-09 20:23:42 +0000 |
commit | 0b04891044ac699108e7d303a85fef04ba0a7d5c (patch) | |
tree | 19ce1bc1665830e7fc88d8186ece178cabf1c9df /rdiff-backup/rdiff_backup | |
parent | b9128911b8f9b4d330c5e4760e6671aef385b96c (diff) | |
download | rdiff-backup-0b04891044ac699108e7d303a85fef04ba0a7d5c.tar.gz |
Print a more informative error message if the user's remote shell prints
extraneous information before rdiff-backup runs.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@948 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup')
-rw-r--r-- | rdiff-backup/rdiff_backup/SetConnections.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rdiff-backup/rdiff_backup/SetConnections.py b/rdiff-backup/rdiff_backup/SetConnections.py index 176dd6a..465fcb3 100644 --- a/rdiff-backup/rdiff_backup/SetConnections.py +++ b/rdiff-backup/rdiff_backup/SetConnections.py @@ -164,6 +164,19 @@ installed in the PATH on the remote system. See the man page for more information on this. This message may also be displayed if the remote version of rdiff-backup is quite different from the local version (%s).""" % (exception, remote_cmd, Globals.version)) + except OverflowError, exc: + Log.FatalError("""Integer overflow while attempting to establish the +remote connection by executing + + %s + +Please make sure that nothing is printed (e.g., by your login shell) when this +command executes. Try running this command: + + %s + +which should only print out the text: rdiff-backup <version>""" % (remote_cmd, + remote_cmd.replace("--server", "--version"))) if remote_version != Globals.version: Log("Warning: Local version %s does not match remote version %s." |