Skip to content

Commit c5fed67

Browse files
author
ids
committed
default string
1 parent 2354462 commit c5fed67

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

dist/tools/libs/tools.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class DotnetTool {
344344
const sources = [];
345345
for (const nugetSource of nugetSources) {
346346
const nugetIndex = await fetch(nugetSource).catch((e) => {
347-
this.buildAgent.warn(e.cause?.message ?? "");
347+
this.buildAgent.warn(e.cause?.message ?? "An unknown error occurred while fetching data");
348348
return Response.error();
349349
});
350350
if (!nugetIndex?.ok) {
@@ -367,7 +367,7 @@ class DotnetTool {
367367
const prereleaseParam = includePrerelease ? "true" : "false";
368368
const downloadPath = `${serviceUrl}?q=${toolNameParam}&prerelease=${prereleaseParam}&semVerLevel=2.0.0&take=1`;
369369
const response = await fetch(downloadPath).catch((e) => {
370-
this.buildAgent.warn(e.cause?.message ?? "");
370+
this.buildAgent.warn(e.cause?.message ?? "An unknown error occurred while fetching data");
371371
return Response.error();
372372
});
373373
if (!response || !response.ok) {

dist/tools/libs/tools.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tools/common/dotnet-tool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export abstract class DotnetTool implements IDotnetTool {
243243
for (const nugetSource of nugetSources) {
244244
// Fetch the nuget source index to obtain the query service
245245
const nugetIndex = await fetch(nugetSource).catch((e: { cause: { message: string | undefined } | undefined }) => {
246-
this.buildAgent.warn(e.cause?.message ?? '')
246+
this.buildAgent.warn(e.cause?.message ?? 'An unknown error occurred while fetching data')
247247
return Response.error()
248248
})
249249
if (!nugetIndex?.ok) {
@@ -271,7 +271,7 @@ export abstract class DotnetTool implements IDotnetTool {
271271
const downloadPath = `${serviceUrl}?q=${toolNameParam}&prerelease=${prereleaseParam}&semVerLevel=2.0.0&take=1`
272272

273273
const response = await fetch(downloadPath).catch((e: { cause: { message: string | undefined } | undefined }) => {
274-
this.buildAgent.warn(e.cause?.message ?? '')
274+
this.buildAgent.warn(e.cause?.message ?? 'An unknown error occurred while fetching data')
275275
return Response.error()
276276
})
277277

0 commit comments

Comments
 (0)