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 Oct 10, 2024
1 parent 05c99de commit fbe95d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/services/wifi/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 fbe95d9

Please sign in to comment.