LANCommander/LANCommander.UI
akifreak a439cf5638 Propagate init net failure instead of swallowing
The original catch block was simply swalloing errors instead of
propagating them upwards.
When the /api/Upload/Init request failed it set this.Key = null, logged
to the console, and returned normally. From the caller's perspective
Init() had succeeded.

Start() in the Blazor component then called Upload() immediately after,
which proceeded with this.Key = null. Every chunk was sent to the server
with a null key, the server returned 400 for each one, each UploadChunk
call threw, and the whole upload failed - but only after sending every
chunk, and only with the opaque "Error uploading chunk N/M" message
rather than anything pointing at the actual cause.

By removing the catch, an axios error in Init() propagates up through
the JS interop call InvokeVoidAsync("Init", ...) in Start(). That throws
a JSException in C#, Start() exits immediately before Upload() is ever
called, and the finally block resets Uploading so the UI recovers. The
user gets a failure where it actually happened.
2026-04-04 15:02:46 +02:00
..
Components Propagate init net failure instead of swallowing 2026-04-04 15:02:46 +02:00
Extensions Implement infinite loading with chat thread 2026-01-11 14:38:24 -06:00
Providers Add component for better Not Found message 2026-01-18 02:09:07 -06:00
Styles Fix library list not scrollable and display of selected game details 2026-01-18 04:22:11 -06:00
_Imports.razor Consolidate shared components 2024-08-18 15:05:25 -05:00
_Imports.razor.js Implement infinite loading with chat thread 2026-01-11 14:38:24 -06:00
_Imports.razor.scss Style chat component 2026-01-02 02:10:42 -06:00
_Imports.razor.ts Implement infinite loading with chat thread 2026-01-11 14:38:24 -06:00
ClassBuilder.cs Fix chat component rendering 2025-12-30 18:08:20 -06:00
LANCommander.UI.csproj Fix chat component rendering 2025-12-30 18:08:20 -06:00
package-lock.json WIP infinite loader component 2026-01-03 15:53:17 -06:00
package.json WIP infinite loader component 2026-01-03 15:53:17 -06:00
StyleBuilder.cs Fix missing StyleBuilder utility class 2025-12-30 18:11:20 -06:00
tsconfig.json Consolidate JS for components 2024-08-18 15:25:31 -05:00
webpack.config.js Implement infinite loading with chat thread 2026-01-11 14:38:24 -06:00