backend: don't blindly add "Error" to exception class names
commit918d58b902614ad2c6eede674382e25557276481
authorEric Wong <normalperson@yhbt.net>
Thu, 26 Feb 2009 22:14:40 +0000 (26 14:14 -0800)
committerEric Wong <normalperson@yhbt.net>
Thu, 26 Feb 2009 22:20:02 +0000 (26 14:20 -0800)
tree31eb143b2676af03a490de32d0746f17bc7954a9
parentd6eff4e796bbb2c135f6e15d7c8580e16c6cbb5f
backend: don't blindly add "Error" to exception class names

We were getting classes with "SizeVerifyErrorError", which
just looks stupid.  This was because MogileFS puts
the "_error" suffix into error messages it sends us and
we were blindly appending Error to the end.  Avoid doing
that, even if it's somewhat inconsistent since "ErrorError"
looks really stupid IMNSHO...

Note: this is a minor API change
lib/mogilefs/backend.rb
test/test_backend.rb