Skip to content

Commit 9c64dba

Browse files
committed
Removed usage of unavailable exception type
1 parent bb66cd5 commit 9c64dba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Codebreaker.WinUI/App.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public partial class App : Application
6969
services.AddScoped<AuthPageViewModel>();
7070
services.AddTransient<AuthPage>();
7171

72-
string apiBase = context.Configuration["ApiBase"] ?? throw new ConfigurationNotFoundException("ApiBase");
72+
string apiBase = context.Configuration["ApiBase"] ?? throw new InvalidOperationException("ApiBase configuration not found");
7373
services.AddHttpClient<IGameClient, GameClient>((HttpClient client) => client.BaseAddress = new(apiBase));
7474
services.AddScoped<GamePageViewModel>();
7575
services.AddTransient<GamePage>();

0 commit comments

Comments
 (0)