onscreen/native: Explain why surface creation failed in the error message

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3418>
This commit is contained in:
Daniel van Vugt 2023-11-22 14:48:19 +08:00 committed by Marge Bot
parent 9e4d1f51ee
commit ee3968981f

View File

@ -1883,7 +1883,7 @@ create_surfaces_gbm (CoglOnscreen *onscreen,
{ {
g_set_error (error, COGL_WINSYS_ERROR, g_set_error (error, COGL_WINSYS_ERROR,
COGL_WINSYS_ERROR_CREATE_ONSCREEN, COGL_WINSYS_ERROR_CREATE_ONSCREEN,
"Failed to allocate surface"); "Failed to allocate surface: %s", g_strerror (errno));
return FALSE; return FALSE;
} }