Skip to content

Commit

Permalink
Validate billing + email config (#433)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
NathanFlurry committed Feb 2, 2024
1 parent 4b97332 commit 5b828d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/bolt/core/src/context/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,14 @@ impl ProjectContextData {
{
panic!("must have host networking enabled if tests + pools are enabled (rivet.matchmaker.host_networking = true)");
}

// MARK: Billing emails
if self.ns().rivet.billing.is_some() {
assert!(
self.ns().email.is_some(),
"cannot enable billing without emailing"
);
}
}

// Traverses from FS root to CWD, returns first directory with Bolt.toml
Expand Down

0 comments on commit 5b828d4

Please sign in to comment.