mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
lilith: Support versioning of spawned networks.
This commit is contained in:
11
src/error.rs
11
src/error.rs
@@ -60,6 +60,10 @@ pub enum Error {
|
||||
#[error(transparent)]
|
||||
DashuParseError(#[from] dashu::base::error::ParseError),
|
||||
|
||||
#[cfg(feature = "semver")]
|
||||
#[error("semver parse error: {0}")]
|
||||
SemverError(String),
|
||||
|
||||
// ===============
|
||||
// Encoding errors
|
||||
// ===============
|
||||
@@ -622,6 +626,13 @@ impl From<halo2_proofs::plonk::Error> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "semver")]
|
||||
impl From<semver::Error> for Error {
|
||||
fn from(err: semver::Error) -> Self {
|
||||
Self::SemverError(err.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
#[cfg(feature = "tungstenite")]
|
||||
impl From<tungstenite::Error> for Error {
|
||||
|
||||
Reference in New Issue
Block a user