cli: report missing CurseForge credentials during add
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I0c8d1f20828e88a8fbc737db5a89f5d46a6a6964
This commit is contained in:
parent
e7c6da593d
commit
bfe97e9e66
1 changed files with 12 additions and 1 deletions
|
|
@ -251,7 +251,18 @@ pub async fn execute(
|
|||
|
||||
// Prompt for missing CurseForge credentials when needed
|
||||
if needs_curseforge(lockfile.target.as_ref()) && !skip_prompts {
|
||||
let _ = ensure_curseforge_credentials().await;
|
||||
match ensure_curseforge_credentials().await {
|
||||
Ok(true) => {},
|
||||
Ok(false) => {
|
||||
log::warn!(
|
||||
"CurseForge credentials not configured. CurseForge-only projects \
|
||||
may not resolve."
|
||||
);
|
||||
},
|
||||
Err(e) => {
|
||||
log::warn!("Failed to set up CurseForge credentials: {e}");
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// Load config if available
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue