Add upload retries and richer errors

This commit is contained in:
Codex Agent
2026-01-13 11:08:26 +01:00
parent bd804f373b
commit bd2064a19a
2 changed files with 132 additions and 31 deletions

View File

@@ -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();
}