From a4c2e026e6f675cb740c0a58c20d5789cbb89aea Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 6 Sep 2011 16:28:14 +0000 Subject: replace assert with proper error message --- spectrogram.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spectrogram.c') diff --git a/spectrogram.c b/spectrogram.c index 412d95a..718c5d4 100644 --- a/spectrogram.c +++ b/spectrogram.c @@ -379,7 +379,8 @@ main(int argc, char **argv) pane = init_palette_big(psize); sio = sio_open(NULL, SIO_REC, 0); - assert(sio); + if (!sio) + errx(1, "cannot connect to sound server, is it running?"); sio_initpar(&par); sio_getpar(sio, &par); -- cgit v1.2.3