ref: 8147e0326751d6bb1d40befe627f77834eede320
parent: dfada339fa13762a469cf4dba2c154a426bbecab
	author: Paul Brossier <piem@piem.org>
	date: Mon May  2 08:03:27 EDT 2016
	
python/ext/py-fft.c: improve error messages
--- a/python/ext/py-fft.c
+++ b/python/ext/py-fft.c
@@ -87,7 +87,7 @@
   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 @@
   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;
}
--
⑨