aboutsummaryrefslogtreecommitdiff
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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/pugl_cairo_test.c b/test/pugl_cairo_test.c
index 1ce9edd..61f8ce1 100644
--- a/test/pugl_cairo_test.c
+++ b/test/pugl_cairo_test.c
@@ -230,9 +230,7 @@ main(int argc, char** argv)
PuglStatus st = puglCreateWindow(view, "Pugl Test");
if (st) {
- fprintf(stderr, "error: Failed to create window (%s)\n",
- puglStrerror(st));
- return 1;
+ return logError("Failed to create window (%s)\n", puglStrerror(st));
}
puglShowWindow(view);