From b5cec0c844ea8d85d38505ba8f611424e6897a8a Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 26 Oct 2018 19:21:11 +0200 Subject: [PATCH] [python] fix error messages in filterbank --- python/ext/py-filterbank.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/ext/py-filterbank.c b/python/ext/py-filterbank.c index a4e0ea63..a6647d54 100644 --- a/python/ext/py-filterbank.c +++ b/python/ext/py-filterbank.c @@ -94,7 +94,7 @@ Py_filterbank_do(Py_filterbank * self, PyObject * args) if (self->vec.length != self->win_s / 2 + 1) { PyErr_Format(PyExc_ValueError, - "input cvec has length %d, but fft expects length %d", + "input cvec has length %d, but filterbank expects length %d", self->vec.length, self->win_s / 2 + 1); return NULL; } @@ -139,7 +139,7 @@ Py_filterbank_set_triangle_bands (Py_filterbank * self, PyObject *args) &(self->freqs), samplerate); if (err > 0) { PyErr_SetString (PyExc_ValueError, - "error when setting filter to A-weighting"); + "error when running set_triangle_bands"); return NULL; } Py_RETURN_NONE; @@ -158,7 +158,7 @@ Py_filterbank_set_mel_coeffs_slaney (Py_filterbank * self, PyObject *args) err = aubio_filterbank_set_mel_coeffs_slaney (self->o, samplerate); if (err > 0) { PyErr_SetString (PyExc_ValueError, - "error when setting filter to A-weighting"); + "error when running set_mel_coeffs_slaney"); return NULL; } Py_RETURN_NONE; -- 2.11.0