diff options
author | Bas Pape <baspape@gmail.com> | 2013-07-30 20:03:19 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2013-07-30 20:08:21 +0200 |
commit | 3e136769beae3ef13ce492d341dbf3ff32c87ec9 (patch) | |
tree | cb6b841d5ea726206fefa2a747a20ac6f97c88d7 | |
parent | a72e0de8427938cd50fdfd42fe2d0823518315a9 (diff) |
Use cairo_status_to_string for descriptive errors.
-rw-r--r-- | i3lock.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -657,8 +657,8 @@ int main(int argc, char *argv[]) { img = cairo_image_surface_create_from_png(image_path); /* In case loading failed, we just pretend no -i was specified. */ if (cairo_surface_status(img) != CAIRO_STATUS_SUCCESS) { - fprintf(stderr, "Could not load image \"%s\": cairo surface status %d\n", - image_path, cairo_surface_status(img)); + fprintf(stderr, "Could not load image \"%s\": %s\n", + image_path, cairo_status_to_string(cairo_surface_status(img))); img = NULL; } } |