Skip to content

Commit

Permalink
tweak error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x committed Jul 20, 2024
1 parent c048ee0 commit 35db59d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 35db59d

Please sign in to comment.