diff --git a/lib/network.js b/lib/network.js index 85e1d0a..254e6f0 100644 --- a/lib/network.js +++ b/lib/network.js @@ -319,7 +319,7 @@ function getWindowsDNSsuffixes() { }); return dnsSuffixes; - } catch { + } catch { return { primaryDNS: '', exitCode: 0, @@ -355,7 +355,7 @@ function getWindowsWiredProfilesInformation() { const result = execSync('netsh lan show profiles', util.execOptsWin); const profileList = result.split('\r\nProfile on interface'); return profileList; - } catch { + } catch (error) { if (error.status === 1 && error.stdout.includes('AutoConfig')) { return 'Disabled'; }