We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d40aba8 commit cdbf849Copy full SHA for cdbf849
src/config.rs
@@ -42,6 +42,9 @@ pub struct Config {
42
43
impl Config {
44
pub fn macaroon_file(&self) -> String {
45
+ if self.macaroon_file.is_some() && self.invoice_macaroon_file.is_some() {
46
+ panic!("cannot set --macaroon-file and --invoice-macaroon-file at the same time")
47
+ }
48
match self.invoice_macaroon_file {
49
Some(_) => self.invoice_macaroon_file.clone().unwrap(),
50
None => self
0 commit comments