Skip to content

Commit

Permalink
Add registry url to error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
skh committed May 26, 2020
1 parent 4719bdb commit b8a1088
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ export async function getResponse(url: string): Promise<Response> {
} else {
throw new IngestManagerError(
IngestManagerErrorType.RegistryError,
`Error connecting to package registry: ${response.statusText}`
`Error connecting to package registry at ${url}: ${response.statusText}`
);
}
} catch (e) {
throw new IngestManagerError(
IngestManagerErrorType.RegistryError,
`Error connecting to package registry: ${e.message}`
`Error connecting to package registry at ${url}: ${e.message}`
);
}
}
Expand Down

0 comments on commit b8a1088

Please sign in to comment.