]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commit
Alter the error message returned when peer selection fails
authorKevan Carstensen <kevan@isnotajoke.com>
Mon, 23 Nov 2009 01:24:05 +0000 (18:24 -0700)
committerKevan Carstensen <kevan@isnotajoke.com>
Mon, 23 Nov 2009 01:24:05 +0000 (18:24 -0700)
commit68fb556e934128faf73d750aad7ef03c96af5f64
tree1acf1843adf1ce0b78e1aacc05bd564e40fad91a
parent320582be5a553b37554bf58c84373314989a0d42
Alter the error message returned when peer selection fails

The Tahoe2PeerSelector returned either NoSharesError or NotEnoughSharesError
for a variety of error conditions that weren't informatively described by them.
This patch creates a new error, UploadHappinessError, replaces uses of
NoSharesError and NotEnoughSharesError with it, and alters the error message
raised with the errors to be more in line with the new servers_of_happiness
behavior. See ticket #834 for more information.
src/allmydata/immutable/encode.py
src/allmydata/immutable/upload.py
src/allmydata/interfaces.py