From: zooko Date: Thu, 27 Sep 2007 22:38:59 +0000 (+0530) Subject: zfec: formatting of error messages X-Git-Url: https://git.rkrishnan.org/frontends/specifications//%22news.html/%22?a=commitdiff_plain;h=6c7df179954995427462a327ec14c185d59573ff;p=tahoe-lafs%2Fzfec.git zfec: formatting of error messages darcs-hash:e53d637d7de42d05f59a40d093e4e9f8dc77113b --- diff --git a/zfec/zfec/_fecmodule.c b/zfec/zfec/_fecmodule.c index 5c59870..9050300 100644 --- a/zfec/zfec/_fecmodule.c +++ b/zfec/zfec/_fecmodule.c @@ -167,13 +167,13 @@ Encoder_encode(Encoder *self, PyObject *args) { Py_ssize_t sz, oldsz = 0; for (i=0; ikk; i++) { if (!PyObject_CheckReadBuffer(fastinblocksitems[i])) { - py_raise_fec_error("Precondition violation: %u'th item is required to offer the single-segment read character buffer protocol, but it does not.\n", i); + py_raise_fec_error("Precondition violation: %u'th item is required to offer the single-segment read character buffer protocol, but it does not.", i); goto err; } if (PyObject_AsReadBuffer(fastinblocksitems[i], (const void**)&(incblocks[i]), &sz)) goto err; if (oldsz != 0 && oldsz != sz) { - py_raise_fec_error("Precondition violation: Input blocks are required to be all the same length. oldsz: %Zu, sz: %Zu\n", oldsz, sz); + py_raise_fec_error("Precondition violation: Input blocks are required to be all the same length. oldsz: %Zu, sz: %Zu", oldsz, sz); goto err; } oldsz = sz;