i3 - improved tiling WM


Use cairo_status_to_string for descriptive errors.

Patch status: merged

Patch by Bas Pape

To apply this patch, use:
curl http://cr.i3wm.org/patch/198/raw.patch | git am

b/i3lock.c

13
@@ -657,8 +657,8 @@ int main(int argc, char *argv[]) {
14
         img = cairo_image_surface_create_from_png(image_path);
15
         /* In case loading failed, we just pretend no -i was specified. */
16
         if (cairo_surface_status(img) != CAIRO_STATUS_SUCCESS) {
17
-            fprintf(stderr, "Could not load image \"%s\": cairo surface status %d\n",
18
-                    image_path, cairo_surface_status(img));
19
+            fprintf(stderr, "Could not load image \"%s\": %s\n",
20
+                    image_path, cairo_status_to_string(cairo_surface_status(img)));
21
             img = NULL;
22
         }
23
     }