mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
build(deps): bump error-stack from version 0.3.1 to 0.4.1 (#4188)
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
use std::fmt::Debug;
|
||||
|
||||
use common_utils::errors::ParsingError;
|
||||
use error_stack::IntoReport;
|
||||
pub use euclid::{
|
||||
dssa::types::EuclidAnalysable,
|
||||
frontend::{
|
||||
@ -379,14 +378,12 @@ impl TryFrom<RoutingAlgorithmSerde> for RoutingAlgorithm {
|
||||
RoutingAlgorithmSerde::Priority(i) if i.is_empty() => {
|
||||
Err(ParsingError::StructParseFailure(
|
||||
"Connectors list can't be empty for Priority Algorithm",
|
||||
))
|
||||
.into_report()?
|
||||
))?
|
||||
}
|
||||
RoutingAlgorithmSerde::VolumeSplit(i) if i.is_empty() => {
|
||||
Err(ParsingError::StructParseFailure(
|
||||
"Connectors list can't be empty for Volume split Algorithm",
|
||||
))
|
||||
.into_report()?
|
||||
))?
|
||||
}
|
||||
_ => {}
|
||||
};
|
||||
@ -446,14 +443,12 @@ impl TryFrom<StraightThroughAlgorithmSerde> for StraightThroughAlgorithm {
|
||||
StraightThroughAlgorithmInner::Priority(i) if i.is_empty() => {
|
||||
Err(ParsingError::StructParseFailure(
|
||||
"Connectors list can't be empty for Priority Algorithm",
|
||||
))
|
||||
.into_report()?
|
||||
))?
|
||||
}
|
||||
StraightThroughAlgorithmInner::VolumeSplit(i) if i.is_empty() => {
|
||||
Err(ParsingError::StructParseFailure(
|
||||
"Connectors list can't be empty for Volume split Algorithm",
|
||||
))
|
||||
.into_report()?
|
||||
))?
|
||||
}
|
||||
_ => {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user