Error message fixes

This commit is contained in:
omuretsu
2022-10-14 11:08:24 -04:00
parent 7683990d17
commit 9908f4aaa5
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export function assert<T>(
try {
assertFn(v);
} catch (type: unknown) {
if (type !== "string") type = "unknown";
if (typeof type !== "string") type = "unknown";
throw msgFn(type as string);
}
}