瀏覽代碼

Catch unexpected system_error during repoman_add

default_compile_flags
vector-of-bool 3 年之前
父節點
當前提交
b9e5c67c49
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. +7
    -0
      src/dds/cli/cmd/repoman_add.cpp

+ 7
- 0
src/dds/cli/cmd/repoman_add.cpp 查看文件

@@ -82,6 +82,13 @@ int repoman_add(const options& opts) {
[](dds::e_system_error_exc e, dds::e_open_repo_db db) {
dds_log(error, "Error while opening repository database {}: {}", db.path, e.message);
return 1;
},
[](dds::e_system_error_exc e, neo::url url, http_response_info) {
dds_log(error,
"An error occured while downloading [.bold.red[{}]]: {}"_styled,
url.to_string(),
e.message);
return 1;
});
}


Loading…
取消
儲存