[GH-ISSUE #496] Replace Panics with actual proper error code #314

Closed
opened 2026-02-27 19:29:58 +03:00 by kerem · 1 comment
Owner

Originally created by @ghost on GitHub (Jun 17, 2020).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/496

in https://github.com/librespot-org/librespot/blob/dev/core/src/connection/mod.rs#L121
when there is an error it returns an Panic. Instead of Panic Can an error code be returned?
P.S. I'm using librespot as a library

Originally created by @ghost on GitHub (Jun 17, 2020). Original GitHub issue: https://github.com/librespot-org/librespot/issues/496 in https://github.com/librespot-org/librespot/blob/dev/core/src/connection/mod.rs#L121 when there is an error it returns an Panic. Instead of Panic Can an error code be returned? *P.S. I'm using librespot as a library*
kerem closed this issue 2026-02-27 19:29:58 +03:00
Author
Owner

@ashthespy commented on GitHub (Jun 17, 2020):

The overall issue of panics is already being tracked in #193, closing this in favour of that..

During the refactor to futures 0.3/async/await, this is one the low hanging fruits that we are trying to grab as well..

<!-- gh-comment-id:645294763 --> @ashthespy commented on GitHub (Jun 17, 2020): The overall issue of panics is already being tracked in #193, closing this in favour of that.. During the refactor to futures 0.3/async/await, this is one the low hanging fruits [that we are trying to grab as well..](https://github.com/librespot-org/librespot/pull/487/commits/eee8ada1bb4c29f77a8bb5b5e58b40cfcc9a88a9#diff-a28df30749bc2e5e613350e045ad3672R14-R20)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#314
No description provided.