diff options
author | David Robillard <d@drobilla.net> | 2019-11-18 16:20:33 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-11-18 19:33:16 +0100 |
commit | 47beee70b04438f291ba00b6dc9d14ec4a54c662 (patch) | |
tree | f26cd7364a69907becdc6e52db13cc8fe583207c /test/pugl_print_events.c | |
parent | dd90f0dc8918e3ebfc4f526e332bfdb71129531f (diff) | |
download | pugl-47beee70b04438f291ba00b6dc9d14ec4a54c662.tar.gz pugl-47beee70b04438f291ba00b6dc9d14ec4a54c662.tar.bz2 pugl-47beee70b04438f291ba00b6dc9d14ec4a54c662.zip |
Add test utility function for logging errors
Diffstat (limited to 'test/pugl_print_events.c')
-rw-r--r-- | test/pugl_print_events.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/pugl_print_events.c b/test/pugl_print_events.c index c61b7f9..5e6fba1 100644 --- a/test/pugl_print_events.c +++ b/test/pugl_print_events.c @@ -65,8 +65,7 @@ main(void) puglSetEventFunc(app.view, onEvent); if (puglCreateWindow(app.view, "Pugl Event Printer")) { - fprintf(stderr, "error: Failed to create window\n"); - return 1; + return logError("Failed to create window\n"); } puglShowWindow(app.view); |