mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-19 13:47:54 +00:00
Improve error message if supervisor0 network not found
Signed-off-by: Christina Ying Wang <christina@balena.io>
This commit is contained in:
parent
1034aa70e6
commit
af0bb87def
@ -79,8 +79,11 @@ export async function supervisorNetworkReady(): Promise<boolean> {
|
||||
network.IPAM.Config[0].Subnet === subnet &&
|
||||
network.IPAM.Config[0].Gateway === gateway;
|
||||
return result;
|
||||
} catch (e) {
|
||||
log.warn(`Failed to read docker configuration of network ${iface}:`, e);
|
||||
} catch (e: unknown) {
|
||||
log.warn(
|
||||
`Failed to read docker configuration of network ${iface}:`,
|
||||
(e as Error).message,
|
||||
);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user