Internal Server Error when navigating to the Scuttlebutt status page.
Steps to reproduce:
Run PeachPub on a computer without go-sbot installed, login to the web interface and click on the Status icon.
Error message:
thread '<unnamed>' panicked at 'couldn't read local secret: SyncIo(Custom { kind: NotFound, error: VerboseError { source: Os { code: 2, kind: NotFound, message: "No such file or directory" }, message: "could not open /home/cordyceps/.ssb-go/secret" } })', /home/cordyceps/.cargo/git/checkouts/golgi-bf299908ffde79a1/0aa616d/src/sbot.rs:75:18
Return a GolgiError using the ? operator, rather than using expect. Handle the error in PeachPub and show an appropriate message to the user.
**Behaviour**:
Internal Server Error when navigating to the Scuttlebutt status page.
**Steps to reproduce**:
Run PeachPub on a computer without go-sbot installed, login to the web interface and click on the Status icon.
**Error message**:
`thread '<unnamed>' panicked at 'couldn't read local secret: SyncIo(Custom { kind: NotFound, error: VerboseError { source: Os { code: 2, kind: NotFound, message: "No such file or directory" }, message: "could not open `/home/cordyceps/.ssb-go/secret`" } })', /home/cordyceps/.cargo/git/checkouts/golgi-bf299908ffde79a1/0aa616d/src/sbot.rs:75:18`
**Error source**:
https://git.coopcloud.tech/golgi-ssb/golgi/src/commit/0aa616d92b005b38359aa34bf448f3f1f47e8e6a/src/sbot.rs#L72
**Suggested fix**:
Return a `GolgiError` using the `?` operator, rather than using `expect`. Handle the error in PeachPub and show an appropriate message to the user.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Behaviour:
Internal Server Error when navigating to the Scuttlebutt status page.
Steps to reproduce:
Run PeachPub on a computer without go-sbot installed, login to the web interface and click on the Status icon.
Error message:
thread '<unnamed>' panicked at 'couldn't read local secret: SyncIo(Custom { kind: NotFound, error: VerboseError { source: Os { code: 2, kind: NotFound, message: "No such file or directory" }, message: "could not open/home/cordyceps/.ssb-go/secret" } })', /home/cordyceps/.cargo/git/checkouts/golgi-bf299908ffde79a1/0aa616d/src/sbot.rs:75:18Error source:
Suggested fix:
Return a
GolgiErrorusing the?operator, rather than usingexpect. Handle the error in PeachPub and show an appropriate message to the user.Addressed in #51