mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 11:27:04 +02:00
Error message fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user