File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments