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"); } }