aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/pugl_print_events.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/pugl_print_events.c b/examples/pugl_print_events.c
index 08a4a86..3a5f6a7 100644
--- a/examples/pugl_print_events.c
+++ b/examples/pugl_print_events.c
@@ -63,8 +63,9 @@ main(void)
puglSetHandle(app.view, &app);
puglSetEventFunc(app.view, onEvent);
- if (puglRealize(app.view)) {
- return logError("Failed to create window\n");
+ PuglStatus st = puglRealize(app.view);
+ if (st) {
+ return logError("Failed to create window (%s)\n", puglStrerror(st));
}
puglShowWindow(app.view);