mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-05-31 10:13:35 -07:00
df84faa1f9
* rayhunter-daemon: API for triggering and reading analysis * rayhunter-daemon: rename readonly mode to debug mode * rayhunter-daemon: debug mode allows live-loading frontend files * rayhunter-check: rework to handle directories * rayhunter-check: better output * CI: build rayhunter-check
19 lines
631 B
Rust
19 lines
631 B
Rust
use thiserror::Error;
|
|
use rayhunter::diag_device::DiagDeviceError;
|
|
|
|
use crate::qmdl_store::RecordingStoreError;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum RayhunterError{
|
|
#[error("Config file parsing error: {0}")]
|
|
ConfigFileParsingError(#[from] toml::de::Error),
|
|
#[error("Diag intialization error: {0}")]
|
|
DiagInitError(DiagDeviceError),
|
|
#[error("Tokio error: {0}")]
|
|
TokioError(#[from] tokio::io::Error),
|
|
#[error("QmdlStore error: {0}")]
|
|
QmdlStoreError(#[from] RecordingStoreError),
|
|
#[error("No QMDL store found at path {0}, but can't create a new one due to debug mode")]
|
|
NoStoreDebugMode(String),
|
|
}
|