Skip to content

Commit

Permalink
Add authentication notice on source access error nuget resolution (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
filip-debricked authored Sep 6, 2024
1 parent 88a9380 commit 7fd84ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion internal/resolution/pm/nuget/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func (j *Job) getNoInternetErrorDocumentation(matches [][]string) string {
"Registry",
"\"" + registry + "\"",
"is not available at the moment.",
"There might be a trouble with your network connection.",
"There might be a trouble with your network connection,",
"or this could be an authentication issue if this is a private registry.",
}, " ")
}
2 changes: 1 addition & 1 deletion internal/resolution/pm/nuget/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func TestRunInstallCmdErr(t *testing.T) {
{
name: "No internet connection",
error: "Unable to load the service index for source https://api.nuget.org/v3/index.json.\nAn error occurred while sending the request. \nThe remote name could not be resolved: 'api.nuget.org'",
doc: "Registry \"https://api.nuget.org/v3/index.json\" is not available at the moment. There might be a trouble with your network connection.",
doc: "Registry \"https://api.nuget.org/v3/index.json\" is not available at the moment. There might be a trouble with your network connection, or this could be an authentication issue if this is a private registry.",
},
}

Expand Down

0 comments on commit 7fd84ca

Please sign in to comment.