Skip to content

Commit

Permalink
Merge pull request #728 from prey/fix-logger-user
Browse files Browse the repository at this point in the history
fix in get_active_access_point
  • Loading branch information
SoraKenji authored Mar 15, 2023
2 parents 0b5544c + 65a3398 commit f1fe483
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/agent/providers/network/windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ exports.get_active_access_point = (callback) => {
// eslint-disable-next-line consistent-return
exec('netsh wlan show interfaces', (error, stdout) => {
if (error) return callback(error);
if (!stdout || stdout == '') return callback(new Error('the command response is empty'));
if (!stdout.includes('SSID')) return callback(new Error('Wifi connection unavailable'));
try {
const info = stdout.split('\n');
Expand Down

0 comments on commit f1fe483

Please sign in to comment.