History

python/ext/py-phasevoc.c: improve error message

Paul Brossier committed 10 years ago

Commit ad9f9991 parent 168a1541 file · +3 −3Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/ext/py-phasevoc.c+3−3
@@ -66,9 +66,9 @@ Py_pvoc_init (Py_pvoc * self, PyObject * args, PyObject * kwds) · 65 unmodified lines
6666 {
6767 self->o = new_aubio_pvoc ( self->win_s, self->hop_s);
6868 if (self->o == NULL) {
69− char_t errstr[30];
70− sprintf(errstr, "error creating pvoc with %d, %d", self->win_s, self->hop_s);
71− PyErr_SetString (PyExc_RuntimeError, errstr);
69+ PyErr_Format(PyExc_RuntimeError,
70+ "failed creating pvoc with win_s=%d, hop_s=%d",
71+ self->win_s, self->hop_s);
7272 return -1;
7373 }
7474

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t