Return error when keystore read fails (don't panic) #46
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: golgi-ssb/golgi#46
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
0aa616d92b/src/sbot.rs (L72)
Suggested fix:
Return a
GolgiError
using the?
operator, rather than usingexpect
. Handle the error in PeachPub and show an appropriate message to the user.Addressed in #51