From 8147e0326751d6bb1d40befe627f77834eede320 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Mon, 2 May 2016 12:03:27 +0200 Subject: [PATCH] python/ext/py-fft.c: improve error messages --- python/ext/py-fft.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.11.0