diff options
| author | Fuwn <[email protected]> | 2022-02-08 18:26:17 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-09 00:46:07 -0700 |
| commit | 16e321165b4cd08d2346b60da79184fcc003104e (patch) | |
| tree | 0ef2157851138c061cfbe1e363855f249c94fc43 /crates/divina_config/src/lib.rs | |
| parent | feat(cli): check before initing, no overwrite (diff) | |
| download | archived-divina-16e321165b4cd08d2346b60da79184fcc003104e.tar.xz archived-divina-16e321165b4cd08d2346b60da79184fcc003104e.zip | |
feat(divina_util): create and implement utility
Diffstat (limited to 'crates/divina_config/src/lib.rs')
| -rw-r--r-- | crates/divina_config/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/divina_config/src/lib.rs b/crates/divina_config/src/lib.rs index 1df8ddb..dee15a7 100644 --- a/crates/divina_config/src/lib.rs +++ b/crates/divina_config/src/lib.rs @@ -274,12 +274,12 @@ impl Config { } else if globals.get::<_, Table<'_>>("Package").is_ok() { ConfigType::Package } else { - println!( + divina_util::exit_with!( + 1, "!! '{}' is neither `Workspace` nor `Package`, perhaps you've forgotten to assign to it \ ?", file ); - std::process::exit(0); }; if self.config_type == ConfigType::Package { |