Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
next-link warning reduced to once per method/endpoint, omitting the q…
…uery, fixes #2848
  • Loading branch information
viktor-svub committed Jan 18, 2018
commit ba482b8868bcf274c440bb1e4e4a496b319b34c7
6 changes: 5 additions & 1 deletion src/Paket.Core/Dependencies/NuGetV2.fs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ let private followODataLink auth url =

match atLeastOneFailed with
| Some i ->
traceWarnfn "At least one 'next' link (index %d) returned a empty result (noticed on '%O'): ['%s']" i url (System.String.Join("' ; '", linksToFollow))
let mutable uri = null // warn once per apecific API endpoint, but try to cut the query

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

let baseUrl = if Uri.TryCreate(url, UriKind.Absolute, &uri) then uri.AbsolutePath else url
traceWarnIfNotBefore baseUrl
"At least one 'next' link (index %d) returned a empty result (noticed on '%O'): ['%s']"
i url (System.String.Join("' ; '", linksToFollow))
| None -> ()
return
true,
Expand Down