From 35db59d7bc7e4dd9188add93a666ba82bca5d8a0 Mon Sep 17 00:00:00 2001 From: Kai Ninomiya Date: Fri, 19 Jul 2024 20:46:01 -0700 Subject: [PATCH] tweak error messages --- sample/util.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/util.ts b/sample/util.ts index ff881e18..b16a4aac 100644 --- a/sample/util.ts +++ b/sample/util.ts @@ -3,11 +3,11 @@ export function quitIfAdapterNotAvailable( adapter: GPUAdapter | null ): asserts adapter { if (!('gpu' in navigator)) { - fail('WebGPU not available in this browser (navigator.gpu is undefined)'); + fail('navigator.gpu is not defined - WebGPU not available in this browser'); } if (!adapter) { - fail('WebGPU not available on this system (requestAdapter returned null)'); + fail("requestAdapter returned null - this sample can't run on this system"); } }