There now exists an ErrorPopup that pops up on screen whenever an error occurs
To better utilize this, we need to refactor code so that whenever an error occurs, it should be showed via the popup.
utils.ReturnError(locn, title string, err error) tea.Cmd
This is the function you can call to return a tea.Cmd error, since it returns tea.Cmd, you need to return this only in the Update() method and any outlying error handling needs to first be returned to the Update() method and then handled.
There now exists an ErrorPopup that pops up on screen whenever an error occurs
To better utilize this, we need to refactor code so that whenever an error occurs, it should be showed via the popup.
utils.ReturnError(locn, title string, err error) tea.CmdThis is the function you can call to return a tea.Cmd error, since it returns tea.Cmd, you need to return this only in the
Update()method and any outlying error handling needs to first be returned to theUpdate()method and then handled.