diff options
author | David Robillard <d@drobilla.net> | 2019-11-03 21:13:40 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-11-09 12:15:17 +0100 |
commit | b5f04656a4b3d1b43a66585ead8ef55536a4fdbc (patch) | |
tree | efc8765b6e7a5c670735205593a7daed38bce83b /test/pugl_cairo_test.c | |
parent | be838db18af13390cb9f705d36ab83396d2dd1e6 (diff) | |
download | pugl-b5f04656a4b3d1b43a66585ead8ef55536a4fdbc.tar.gz pugl-b5f04656a4b3d1b43a66585ead8ef55536a4fdbc.tar.bz2 pugl-b5f04656a4b3d1b43a66585ead8ef55536a4fdbc.zip |
Add puglStrerror() and improve test program error reporting
Diffstat (limited to 'test/pugl_cairo_test.c')
-rw-r--r-- | test/pugl_cairo_test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/pugl_cairo_test.c b/test/pugl_cairo_test.c index 1aa291a..1ce9edd 100644 --- a/test/pugl_cairo_test.c +++ b/test/pugl_cairo_test.c @@ -228,7 +228,10 @@ main(int argc, char** argv) puglSetViewHint(view, PUGL_IGNORE_KEY_REPEAT, opts.ignoreKeyRepeat); puglSetEventFunc(view, onEvent); - if (puglCreateWindow(view, "Pugl Test")) { + PuglStatus st = puglCreateWindow(view, "Pugl Test"); + if (st) { + fprintf(stderr, "error: Failed to create window (%s)\n", + puglStrerror(st)); return 1; } |