Introduce a new internal error type to categorize panics

This commit is contained in:
Clément Renault 2024-04-22 15:46:16 +02:00
parent 0c7003c5df
commit 96cc5319c8
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
2 changed files with 12 additions and 0 deletions

View file

@ -49,6 +49,8 @@ pub enum InternalError {
InvalidDatabaseTyping,
#[error(transparent)]
RayonThreadPool(#[from] ThreadPoolBuildError),
#[error("A panic occured. Read the logs to find more information about it.")]
PanicInThreadPool,
#[error(transparent)]
SerdeJson(#[from] serde_json::Error),
#[error(transparent)]