projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
168a154
)
python/ext/py-phasevoc.c: improve error message
author
Paul Brossier
<piem@piem.org>
Tue, 10 May 2016 21:20:52 +0000
(23:20 +0200)
committer
Paul Brossier
<piem@piem.org>
Tue, 10 May 2016 21:20:52 +0000
(23:20 +0200)
python/ext/py-phasevoc.c
patch
|
blob
|
history
diff --git
a/python/ext/py-phasevoc.c
b/python/ext/py-phasevoc.c
index
71bb5d5
..
62312ea
100644
(file)
--- a/
python/ext/py-phasevoc.c
+++ b/
python/ext/py-phasevoc.c
@@
-66,9
+66,9
@@
Py_pvoc_init (Py_pvoc * self, PyObject * args, PyObject * kwds)
{
self->o = new_aubio_pvoc ( self->win_s, self->hop_s);
if (self->o == NULL) {
- char_t errstr[30];
- sprintf(errstr, "error creating pvoc with %d, %d", self->win_s, self->hop_s);
-
PyErr_SetString (PyExc_RuntimeError, errstr
);
+ PyErr_Format(PyExc_RuntimeError,
+ "failed creating pvoc with win_s=%d, hop_s=%d",
+
self->win_s, self->hop_s
);
return -1;
}