toverainc / willow

Open source, local, and self-hosted Amazon Echo/Google Home competitive Voice Assistant alternative
https://heywillow.io/
Apache License 2.0
2.61k stars 96 forks source link

main: fix error printing in app_main #341

Closed stintel closed 11 months ago

stintel commented 11 months ago

We're assigning the return value of several functions to the variable ret, but when there's an error we print the name of err. As app_main doesn't return anything, drop the ret variable completely and use err everywhere.

Fixes: 36ee1f70bf1d ("main: read Wi-Fi credentials from NVS") Fixes: ae4314713b8b ("main: get WAS URL from NVS")