Add upload retries and richer errors
This commit is contained in:
@@ -304,14 +304,14 @@ public partial class MainWindow : Window
|
||||
UpdateLiveStatus();
|
||||
}
|
||||
|
||||
private void OnFailure(string path)
|
||||
private void OnFailure(string path, string message)
|
||||
{
|
||||
_failedPaths.Add(path);
|
||||
Interlocked.Decrement(ref _uploadingCount);
|
||||
Interlocked.Increment(ref _failedCount);
|
||||
UpdateUpload(path, UploadStatus.Failed);
|
||||
UpdateStatusIfAllowed($"Upload fehlgeschlagen: {Path.GetFileName(path)}", true);
|
||||
SetLastError($"Upload fehlgeschlagen: {Path.GetFileName(path)}");
|
||||
SetLastError($"{Path.GetFileName(path)} – {message}");
|
||||
UpdateRetryButton();
|
||||
UpdateCountersText();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user