mlabrum / vsts-download-secure-file

VSTS secure file downloader
3 stars 4 forks source link

check for errors messages instead of direct save #12

Open itsho opened 5 years ago

itsho commented 5 years ago

This task downloads files but sometimes, TFS could throw an error, and this is will - mistakenly, get saved as the requested file.

for example - the content could be this:

 {"$id":"1","innerException":null,"message":"TF15004: The download request signature has 
expired.","typeName":"Microsoft.TeamFoundation.Framework.Server.DownloadTicketValidationException, 
Microsoft.TeamFoundation.Framework.Server","typeKey":"DownloadTicketValidationException","errorCode":0,"eventId":4008}