Skip to content
Permalink
Browse files

chore: expose settlement errors

  • Loading branch information
gakonst committed Oct 23, 2019
1 parent 9fa5175 commit bf9e50eaf2299995b52d1246a18fd263bef6ab67
Showing with 5 additions and 2 deletions.
  1. +1 −1 crates/interledger-settlement/src/api.rs
  2. +4 −1 crates/interledger-settlement/src/lib.rs
@@ -39,8 +39,8 @@ pub const CONVERSION_ERROR_TYPE: ApiErrorType = ApiErrorType {
// Account without an engine error
pub const NO_ENGINE_CONFIGURED_ERROR_TYPE: ApiErrorType = ApiErrorType {
r#type: &ProblemType::Default,
status: StatusCode::NOT_FOUND,
title: "No settlement engine configured",
status: StatusCode::NOT_FOUND,
};

pub fn create_settlements_filter<S, O, A>(
@@ -18,7 +18,10 @@ use num_bigint::BigUint;
use serde::{Deserialize, Serialize};
use std::ops::{Div, Mul};

pub use api::{create_settlements_filter, scale_with_precision_loss};
pub use api::{
create_settlements_filter, scale_with_precision_loss, CONVERSION_ERROR_TYPE,
NO_ENGINE_CONFIGURED_ERROR_TYPE,
};
pub use client::SettlementClient;
pub use message_service::SettlementMessageService;

0 comments on commit bf9e50e

Please sign in to comment.
You can’t perform that action at this time.