clarify errors

master
Aleš Katona 2 years ago
parent c0783f80a0
commit 07c144fef4
Signed by: almindor
GPG Key ID: 2F773149BF38B48F

@ -102,8 +102,12 @@ impl Vcs {
profile_name.bold().with(PROFILE_COLOR),
format!("{}", self.work_dir.display()).italic(),
);
} else {
if self.profiles.is_empty() {
println!("{}", "No profiles defined, use 'cargo vcs save' to generate one".with(ERROR_COLOR));
} else {
println!("{}", "Mismatching projects and profiles".with(ERROR_COLOR));
}
self.list();
}
@ -318,7 +322,7 @@ impl Vcs {
} else {
path = path
.parent()
.ok_or_else(|| Error::input_error("Workspace not found", path_str))?;
.ok_or_else(|| Error::input_error("No workspace found", path_str))?;
}
}
}

Loading…
Cancel
Save