mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 18:07:01 +00:00
Merge branch 'restore_error_reporting' of https://github.com/Luflosi/kitty
This commit is contained in:
commit
c1febea659
1 changed files with 3 additions and 3 deletions
6
glfw/wl_window.c
vendored
6
glfw/wl_window.c
vendored
|
|
@ -242,8 +242,8 @@ static struct wl_buffer* createShmBuffer(const GLFWimage* image)
|
|||
if (fd < 0)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: Creating a buffer file for %d B failed: %%m",
|
||||
length);
|
||||
"Wayland: Creating a buffer file for %d B failed: %s",
|
||||
length, strerror(errno));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
@ -251,7 +251,7 @@ static struct wl_buffer* createShmBuffer(const GLFWimage* image)
|
|||
if (data == MAP_FAILED)
|
||||
{
|
||||
_glfwInputError(GLFW_PLATFORM_ERROR,
|
||||
"Wayland: mmap failed: %%m");
|
||||
"Wayland: mmap failed: %s", strerror(errno));
|
||||
close(fd);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue