1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-25 12:05:59 +01:00

temporarily disable throwing on failure (#1236)

This commit is contained in:
Matt Portune 2021-01-22 16:10:45 -05:00 committed by GitHub
parent 1197c10592
commit 28a1bd5219
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); 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); // Console.WriteLine("Version code {0} has been uploaded.", aab.VersionCode);
//
var trackRequest = service.Edits.Tracks.Update(new Track // var trackRequest = service.Edits.Tracks.Update(new Track
{ // {
TrackValue = _track, // TrackValue = _track,
Releases = new List<TrackRelease> // Releases = new List<TrackRelease>
{ // {
new TrackRelease { VersionCodes = new List<long?> { aab.VersionCode }, Status = "completed" } // new TrackRelease { VersionCodes = new List<long?> { aab.VersionCode }, Status = "completed" }
} // }
}, Package, edit.Id, _track); // }, Package, edit.Id, _track);
//
var updatedTrack = await trackRequest.ExecuteAsync(); // var updatedTrack = await trackRequest.ExecuteAsync();
Console.WriteLine("Track {0} has been updated.", updatedTrack.TrackValue); // Console.WriteLine("Track {0} has been updated.", updatedTrack.TrackValue);
//
var commitRequest = service.Edits.Commit(Package, edit.Id); // var commitRequest = service.Edits.Commit(Package, edit.Id);
var commitEdit = await commitRequest.ExecuteAsync(); // var commitEdit = await commitRequest.ExecuteAsync();
Console.WriteLine("App edit with id {0} has been comitted.", commitEdit.Id); // Console.WriteLine("App edit with id {0} has been comitted.", commitEdit.Id);
} }
} }
} }