Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
855a55c2
Unverified
Commit
855a55c2
authored
3 years ago
by
Michael Kriese
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix(nuget): pass ExternalHostError up (#10751)
parent
19d6822a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/datasource/nuget/v3.ts
+5
-0
5 additions, 0 deletions
lib/datasource/nuget/v3.ts
with
5 additions
and
0 deletions
lib/datasource/nuget/v3.ts
+
5
−
0
View file @
855a55c2
...
...
@@ -3,6 +3,7 @@ import pAll from 'p-all';
import
*
as
semver
from
'
semver
'
;
import
{
XmlDocument
}
from
'
xmldoc
'
;
import
{
logger
}
from
'
../../logger
'
;
import
{
ExternalHostError
}
from
'
../../types/errors/external-host-error
'
;
import
*
as
packageCache
from
'
../../util/cache/package
'
;
import
{
Http
}
from
'
../../util/http
'
;
import
{
HttpError
}
from
'
../../util/http/types
'
;
...
...
@@ -174,6 +175,10 @@ export async function getReleases(
}
}
}
catch
(
err
)
{
// istanbul ignore if: not easy testable with nock
if
(
err
instanceof
ExternalHostError
)
{
throw
err
;
}
// ignore / silence 404. Seen on proget, if remote connector is used and package is not yet cached
if
(
err
instanceof
HttpError
&&
err
.
response
?.
statusCode
===
404
)
{
logger
.
debug
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment