From: zooko Date: Fri, 9 Nov 2007 04:55:19 +0000 (+0530) Subject: zfec: clearer precondition failure exception message X-Git-Url: https://git.rkrishnan.org/components/%22news.html/simplejson/rgr-080307.php?a=commitdiff_plain;h=d2d3bd84f5c64280722f8fadfb2cee4f970ef94b;p=tahoe-lafs%2Fzfec.git zfec: clearer precondition failure exception message darcs-hash:1aaa9d162836f85f2413e6008bc0d924d4d4d089 --- diff --git a/zfec/zfec/_fecmodule.c b/zfec/zfec/_fecmodule.c index 36127a8..c4da169 100644 --- a/zfec/zfec/_fecmodule.c +++ b/zfec/zfec/_fecmodule.c @@ -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; }