mirror of
https://codeberg.org/Toasterson/solstice-ci.git
synced 2026-04-10 21:30:41 +00:00
20 lines
498 B
Rust
20 lines
498 B
Rust
|
|
use thiserror::Error;
|
||
|
|
|
||
|
|
#[derive(Debug, Error)]
|
||
|
|
pub enum OrchestratorError {
|
||
|
|
#[error("ssh keygen failed: {0}")]
|
||
|
|
SshKeygen(#[source] anyhow::Error),
|
||
|
|
|
||
|
|
#[error("encode pubkey: {0}")]
|
||
|
|
EncodePubKey(#[source] anyhow::Error),
|
||
|
|
|
||
|
|
#[error("encode privkey: {0}")]
|
||
|
|
EncodePrivKey(#[source] anyhow::Error),
|
||
|
|
|
||
|
|
#[error("failed to connect to database: {0}")]
|
||
|
|
DbConnect(#[source] anyhow::Error),
|
||
|
|
|
||
|
|
#[error("failed to apply migrations: {0}")]
|
||
|
|
DbMigrate(#[source] anyhow::Error),
|
||
|
|
}
|