Skip to content

Commit

Permalink
Add YOLO error variant to InsertDomainResult
Browse files Browse the repository at this point in the history
  • Loading branch information
kim committed Jul 11, 2023
1 parent 72b9da6 commit a8141d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/cli/src/subcommands/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ pub async fn exec_set_name(mut config: Config, args: &ArgMatches) -> Result<(),
)),
};
}
InsertDomainResult::OtherError(e) => return Err(anyhow::anyhow!(e)),
}

Ok(())
Expand Down
3 changes: 3 additions & 0 deletions crates/lib/src/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ pub enum InsertDomainResult {
PermissionDenied {
domain: DomainName,
},

/// Some unspecified error occurred.
OtherError(String),
}

#[derive(Clone, Copy, Debug)]
Expand Down

0 comments on commit a8141d0

Please sign in to comment.