From 47beee70b04438f291ba00b6dc9d14ec4a54c662 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 18 Nov 2019 16:20:33 +0100 Subject: Add test utility function for logging errors --- test/pugl_print_events.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/pugl_print_events.c') 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); -- cgit v1.2.1