diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 9e3b1e0..ccd20a2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -132,6 +132,9 @@ fn main() -> anyhow::Result<()> { } else { Config::load(&root)? }; + // Startup, not first-build: a configuration that cannot work is refused + // before the watcher, the dispatcher or the UI are up and looking healthy. + cfg.validate()?; if let Cmd::Serve { bind } = &cli.cmd { let mut cfg = cfg; if let Some(b) = bind { |
