revert "temporarily disable throwing on failure" (#1239)

This commit is contained in:
Matt Portune 2021-01-25 09:59:38 -05:00 committed by GitHub
parent 28a1bd5219
commit 9d4d09810a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,27 +101,27 @@ namespace Bit.Publisher
{
Console.WriteLine("Upload exception: {0}", progress.Exception);
}
// throw new Exception("Upload failed.");
throw new Exception("Upload failed.");
}
}
// Console.WriteLine("Version code {0} has been uploaded.", aab.VersionCode);
//
// var trackRequest = service.Edits.Tracks.Update(new Track
// {
// TrackValue = _track,
// Releases = new List<TrackRelease>
// {
// new TrackRelease { VersionCodes = new List<long?> { aab.VersionCode }, Status = "completed" }
// }
// }, Package, edit.Id, _track);
//
// var updatedTrack = await trackRequest.ExecuteAsync();
// Console.WriteLine("Track {0} has been updated.", updatedTrack.TrackValue);
//
// var commitRequest = service.Edits.Commit(Package, edit.Id);
// var commitEdit = await commitRequest.ExecuteAsync();
// Console.WriteLine("App edit with id {0} has been comitted.", commitEdit.Id);
Console.WriteLine("Version code {0} has been uploaded.", aab.VersionCode);
var trackRequest = service.Edits.Tracks.Update(new Track
{
TrackValue = _track,
Releases = new List<TrackRelease>
{
new TrackRelease { VersionCodes = new List<long?> { aab.VersionCode }, Status = "completed" }
}
}, Package, edit.Id, _track);
var updatedTrack = await trackRequest.ExecuteAsync();
Console.WriteLine("Track {0} has been updated.", updatedTrack.TrackValue);
var commitRequest = service.Edits.Commit(Package, edit.Id);
var commitEdit = await commitRequest.ExecuteAsync();
Console.WriteLine("App edit with id {0} has been comitted.", commitEdit.Id);
}
}
}