zfec: clearer precondition failure exception message
authorzooko <zooko@zooko.com>
Fri, 9 Nov 2007 04:55:19 +0000 (10:25 +0530)
committerzooko <zooko@zooko.com>
Fri, 9 Nov 2007 04:55:19 +0000 (10:25 +0530)
darcs-hash:1aaa9d162836f85f2413e6008bc0d924d4d4d089

zfec/zfec/_fecmodule.c

index 36127a84712a17ef9a11aac43831b3a876322199..c4da169662b11c2223b4b8dd13b157222aff8f66 100644 (file)
@@ -157,7 +157,7 @@ Encoder_encode(Encoder *self, PyObject *args) {
         goto err;
 
     if (PySequence_Fast_GET_SIZE(fastinblocks) != self->kk) {
-        py_raise_fec_error("Precondition violation: Wrong length -- first argument is required to contain exactly k blocks.  len(first): %d, k: %d", PySequence_Fast_GET_SIZE(fastinblocks), self->kk); 
+        py_raise_fec_error("Precondition violation: Wrong length -- first argument (the sequence of input blocks) is required to contain exactly k blocks.  len(first): %d, k: %d", PySequence_Fast_GET_SIZE(fastinblocks), self->kk);
         goto err;
     }