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