summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/os.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/os.ts b/js/os.ts
index f4f5e35d1..e49896c51 100644
--- a/js/os.ts
+++ b/js/os.ts
@@ -30,7 +30,10 @@ export function codeFetch(
const msg = fbs.CodeFetch.endCodeFetch(builder);
const baseRes = send(builder, fbs.Any.CodeFetch, msg);
assert(baseRes != null);
- assert(fbs.Any.CodeFetchRes === baseRes!.msgType());
+ assert(
+ fbs.Any.CodeFetchRes === baseRes!.msgType(),
+ `base.msgType() unexpectedly is ${baseRes!.msgType()}`
+ );
const codeFetchRes = new fbs.CodeFetchRes();
assert(baseRes!.msg(codeFetchRes) != null);
return {