Tribler / tribler

Privacy enhanced BitTorrent client with P2P content discovery
https://www.tribler.org
GNU General Public License v3.0
4.86k stars 451 forks source link

Create an error mode session #8195

Closed qstokkink closed 1 month ago

qstokkink commented 1 month ago

As shown in https://github.com/Tribler/tribler/issues/8194#issuecomment-2394007907, some errors can occur before we have a GUI. In these cases, we should still launch some minimal "backup" GUI and notify the user of the error.

In particular for https://github.com/Tribler/tribler/issues/8194#issuecomment-2394007907, a corrupted private key, we should ask the user what they want to do with the corrupt material. There is no obvious solution to this: casually removing a private key is a very bad idea. However, we can give "human" advice instead of the raw traceback.

For other cases, unknown failures, the error should be reported "as usual".