MetaRendererNative: Log error reason when failing to create gbm device

https://bugzilla.gnome.org/show_bug.cgi?id=773629
This commit is contained in:
Jonas Ådahl 2016-10-28 15:35:31 +08:00
parent 77b7ecfd04
commit 4ce7d3a772

View File

@ -1263,7 +1263,7 @@ init_gbm (MetaRendererNative *renderer_native,
{ {
g_set_error (error, G_IO_ERROR, g_set_error (error, G_IO_ERROR,
G_IO_ERROR_FAILED, G_IO_ERROR_FAILED,
"Failed to create gbm device"); "Failed to create gbm device: %s", g_strerror (errno));
return FALSE; return FALSE;
} }