From 6fa39d5e73566d662ffa60cde888f5f3f25a3929 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 21 May 2022 13:19:11 +0900 Subject: [PATCH] internal/glfw: make panic messages consistent --- internal/glfwwin/api_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/glfwwin/api_windows.go b/internal/glfwwin/api_windows.go index 2d6e45a4b..8e430a8d3 100644 --- a/internal/glfwwin/api_windows.go +++ b/internal/glfwwin/api_windows.go @@ -1511,7 +1511,7 @@ func _PtInRect(lprc *_RECT, pt _POINT) bool { // Adjust the alignment for ARM. r, _, _ = procPtInRect.Call(uintptr(unsafe.Pointer(lprc)), 0, uintptr(pt.x), uintptr(pt.y)) default: - panic(fmt.Sprintf("GOARCH=%s is not supported", runtime.GOARCH)) + panic(fmt.Sprintf("glfwwin: GOARCH=%s is not supported", runtime.GOARCH)) } } return int32(r) != 0 @@ -1582,7 +1582,7 @@ func _RtlVerifyVersionInfo(versionInfo *_OSVERSIONINFOEXW, typeMask uint32, cond // Adjust the alignment for ARM. r, _, _ = procRtlVerifyVersionInfo.Call(uintptr(unsafe.Pointer(versionInfo)), uintptr(typeMask), 0, uintptr(conditionMask), uintptr(conditionMask>>32)) default: - panic(fmt.Sprintf("GOARCH=%s is not supported", runtime.GOARCH)) + panic(fmt.Sprintf("glfwwin: GOARCH=%s is not supported", runtime.GOARCH)) } } return int32(r)