Error page: add specific error resolutions
The current error page body has a generic message, we need to add specific resolutions for these cases:
- could not update or read the config file
- could not start node
- could not start farming
Also, it will be nice to add more details on how to contact the team
For the startFarmer function in store.ts -> I think the error handling there is misleading and I suggest some changes.
Background info:
-
Lines: https://github.com/subspace/subspace-desktop/blob/main/src/stores/store.ts#L316-L324 are responsible from the successful
farmerstart on the tauri/backend side. If an error happens in here, it means there is a problem in the backend related tofarmingfunction. -
Lines: https://github.com/subspace/subspace-desktop/blob/main/src/stores/store.ts#L316-L324 are responsible from the syncing process, if a problem happens in these lines, it means that a problem happened between the farmer-node connection, and this connection was related to syncing process
-
Lines: https://github.com/subspace/subspace-desktop/blob/main/src/stores/store.ts#L316-L324 are responsible from starting a successful block subscription, and if a problem happens, it means there is problem between the node and farmer again, but this time, for block subscription.
Why it is misleading:
all these 3 possible errors are handled with a single error message, namely "farmer start error". And this is misleading, because in the 2nd and the 3rd scenario I described above, the farmer INDEED started successfully. This error message will confuse both the users and us (the developers).
2 solutions comes to my mind:
1- have a separate try/catch block for all of them, and in the catch block, handle the respective error with a relevant error message
2- separate the 2nd and the 3rd scenarios into another function, and handle the errors in those functions.