浏览代码

fix: return actual error from get_payment_quote (#1274)

gudnuf 4 天之前
父节点
当前提交
4723e32886
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      crates/cdk/src/mint/melt/mod.rs

+ 2 - 2
crates/cdk/src/mint/melt/mod.rs

@@ -179,7 +179,7 @@ impl Mint {
                     METRICS.record_mint_operation("get_melt_bolt11_quote", false);
                     METRICS.record_error();
                 }
-                Error::UnsupportedUnit
+                err
             })?;
 
         if &payment_quote.unit != unit {
@@ -285,7 +285,7 @@ impl Mint {
                     err
                 );
 
-                Error::UnsupportedUnit
+                err
             })?;
 
         if &payment_quote.unit != unit {