From: Paul Brossier Date: Mon, 2 May 2016 10:03:27 +0000 (+0200) Subject: python/ext/py-fft.c: improve error messages X-Git-Tag: 0.4.4~300^2~147 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=8147e0326751d6bb1d40befe627f77834eede320;p=aubio.git python/ext/py-fft.c: improve error messages --- diff --git a/python/ext/py-fft.c b/python/ext/py-fft.c index 292d8590..7e394713 100644 --- a/python/ext/py-fft.c +++ b/python/ext/py-fft.c @@ -87,7 +87,7 @@ Py_fft_do(Py_fft * self, PyObject * args) if (self->vecin.length != self->win_s) { PyErr_Format(PyExc_ValueError, - "input array has length %d, but fft has size %d", + "input array has length %d, but fft expects length %d", self->vecin.length, self->win_s); return NULL; } @@ -123,8 +123,8 @@ Py_fft_rdo(Py_fft * self, PyObject * args) if (self->cvecin.length != self->win_s / 2 + 1) { PyErr_Format(PyExc_ValueError, - "input array has length %d, but fft input has size %d", - self->vecin.length, self->win_s / 2 + 1); + "input cvec has length %d, but fft expects length %d", + self->cvecin.length, self->win_s / 2 + 1); return NULL; }