ref: ad9f999045fe02e5bc056f63c8f641bc54b24ba8
parent: 168a154e317090c31951a295137b19793c5d0308
author: Paul Brossier <piem@piem.org>
date: Tue May 10 19:20:52 EDT 2016
python/ext/py-phasevoc.c: improve error message
--- a/python/ext/py-phasevoc.c
+++ b/python/ext/py-phasevoc.c
@@ -66,9 +66,9 @@
{
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;
}