mirror of
https://github.com/nspcc-dev/neofs-sdk-go.git
synced 2026-03-01 04:29:18 +00:00
Do not panic ever in SDK #226
Labels
No labels
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U2
U2
U3
U4
blocked
bug
client
config
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
performance
pool
question
security
task
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-sdk-go#226
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @carpawell on GitHub (Jul 15, 2024).
See https://github.com/nspcc-dev/neofs-sdk-go/issues/390#issuecomment-2218503588.
@roman-khimov commented on GitHub (Jul 16, 2024):
I think it's too broad. There are valid cases for panics. For example,
https://cs.opensource.google/go/go/+/refs/tags/go1.22.5:src/net/http/server.go;l=1576
https://cs.opensource.google/go/go/+/refs/tags/go1.22.5:src/bytes/bytes.go;l=517
@carpawell commented on GitHub (Jul 19, 2024):
Agree they can appear when nothing can be done or it is a developer error. But we still panic on user's inputs.