Skip to content

Commit

Permalink
wifi: add stdout to errors
Browse files Browse the repository at this point in the history
Yes this could be somewhat verbose, but verbosity is better than no information
  • Loading branch information
Williangalvani committed Jan 18, 2025
1 parent b82a15e commit f80d58a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/services/wifi/wifi_handlers/wpa_supplicant/Hotspot.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ def start(self) -> None:
time.sleep(3)
if not self.is_running():
exit_code = self._subprocess.returncode
raise RuntimeError(f"Failed to initialize Hostapd ({exit_code}).")
stdout, _ = self._subprocess.communicate()
raise RuntimeError(f"Failed to initialize Hostapd ({exit_code}). Output: {stdout}")
if not self._dhcp_server:
self._dhcp_server = DHCPServerManager(self._ap_interface_name, self._ipv4_gateway)
return
Expand Down

0 comments on commit f80d58a

Please sign in to comment.