fix(build): tighten TypeScript compiler settings and harden error message handling

This commit is contained in:
2026-04-30 13:09:28 +00:00
parent a7c3ab3eea
commit ad73e8ecb8
9 changed files with 1624 additions and 1915 deletions
+4 -2
View File
@@ -133,8 +133,9 @@ export class NetworkManager {
this.bridgeCreated = true;
} catch (err) {
const message = err instanceof Error ? err.message : String(err);
throw new SmartVMError(
`Failed to set up network bridge: ${err.message}`,
`Failed to set up network bridge: ${message}`,
'BRIDGE_SETUP_FAILED',
);
}
@@ -169,8 +170,9 @@ export class NetworkManager {
this.activeTaps.set(tapName, tap);
return tap;
} catch (err) {
const message = err instanceof Error ? err.message : String(err);
throw new SmartVMError(
`Failed to create TAP device ${tapName}: ${err.message}`,
`Failed to create TAP device ${tapName}: ${message}`,
'TAP_CREATE_FAILED',
);
}