Skip to content

Commit f80d58a

Browse files
wifi: add stdout to errors
Yes this could be somewhat verbose, but verbosity is better than no information
1 parent b82a15e commit f80d58a

File tree

1 file changed

+2
-1
lines changed
  • core/services/wifi/wifi_handlers/wpa_supplicant

1 file changed

+2
-1
lines changed

core/services/wifi/wifi_handlers/wpa_supplicant/Hotspot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ def start(self) -> None:
176176
time.sleep(3)
177177
if not self.is_running():
178178
exit_code = self._subprocess.returncode
179-
raise RuntimeError(f"Failed to initialize Hostapd ({exit_code}).")
179+
stdout, _ = self._subprocess.communicate()
180+
raise RuntimeError(f"Failed to initialize Hostapd ({exit_code}). Output: {stdout}")
180181
if not self._dhcp_server:
181182
self._dhcp_server = DHCPServerManager(self._ap_interface_name, self._ipv4_gateway)
182183
return

0 commit comments

Comments
 (0)