From d2d3bd84f5c64280722f8fadfb2cee4f970ef94b Mon Sep 17 00:00:00 2001 From: zooko Date: Fri, 9 Nov 2007 10:25:19 +0530 Subject: [PATCH] zfec: clearer precondition failure exception message darcs-hash:1aaa9d162836f85f2413e6008bc0d924d4d4d089 --- zfec/zfec/_fecmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.45.2