aboutsummaryrefslogtreecommitdiffstats
path: root/test/pugl_print_events.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/pugl_print_events.c')
-rw-r--r--test/pugl_print_events.c3
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);