Return non-zero exit code on error
This commit is contained in:
1 parent
bc1a81b84b
commit
9152e00fab
8 files changed
+21
-21
No files matched your search
@@ -17,8 +17,7 @@ pub struct Create {
|
||||
impl Create {
|
||||
pub fn create(self) -> Result<()> {
|
||||
if Self::name_vaild_check(self.name.clone()) {
|
||||
log::error!("❗Unsupported project name.");
|
||||
return Ok(());
|
||||
return custom_error!("❗Unsupported project name.");
|
||||
}
|
||||
|
||||
let project_path = PathBuf::from(&self.name);
|
||||
|
||||
Reference in new issue
Block a user