Make the error message when failing to get monitor display name more informative

This commit is contained in:
Kovid Goyal 2021-01-29 12:45:22 +05:30
parent ac2a33d09f
commit 0fc93118f2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -89,7 +89,7 @@ static char* getDisplayName(CGDirectDisplayID displayID)
if (!service) if (!service)
{ {
_glfwInputError(GLFW_PLATFORM_ERROR, _glfwInputError(GLFW_PLATFORM_ERROR,
"Cocoa: Failed to find service port for display"); "Cocoa: Failed to find service port for display, cannot get its name, using Unknown");
return NULL; return NULL;
} }