浏览代码

Clarify message in import collision for repo

default_compile_flags
vector-of-bool 4 年前
父节点
当前提交
2e9fe665c5
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      src/dds/repo/repo.cpp

+ 4
- 2
src/dds/repo/repo.cpp 查看文件

@@ -69,8 +69,10 @@ void repository::add_sdist(const sdist& sd, if_exists ife_action) {
}
auto sd_dest = _root / sd.manifest.pkg_id.to_string();
if (fs::exists(sd_dest)) {
auto msg = fmt::format("Source distribution '{}' is already available in the local repo",
sd.path.string());
auto msg = fmt::
format("Package '{}' (Importing from [{}]) is already available in the local repo",
sd.manifest.pkg_id.to_string(),
sd.path.string());
if (ife_action == if_exists::throw_exc) {
throw_user_error<errc::sdist_exists>(msg);
} else if (ife_action == if_exists::ignore) {

正在加载...
取消
保存