From ee3968981fea780bba52242ed9e6f4e0430460a7 Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Wed, 22 Nov 2023 14:48:19 +0800 Subject: [PATCH] onscreen/native: Explain why surface creation failed in the error message Part-of: --- src/backends/native/meta-onscreen-native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/native/meta-onscreen-native.c b/src/backends/native/meta-onscreen-native.c index 29500d94e..3e6d76655 100644 --- a/src/backends/native/meta-onscreen-native.c +++ b/src/backends/native/meta-onscreen-native.c @@ -1883,7 +1883,7 @@ create_surfaces_gbm (CoglOnscreen *onscreen, { g_set_error (error, COGL_WINSYS_ERROR, COGL_WINSYS_ERROR_CREATE_ONSCREEN, - "Failed to allocate surface"); + "Failed to allocate surface: %s", g_strerror (errno)); return FALSE; }