From 8fb412e960a4541b0536e81050dcf96636570f55 Mon Sep 17 00:00:00 2001 From: thetownfool Date: Fri, 14 Feb 2020 18:37:23 +0000 Subject: [PATCH] allow valid error message to be displayed on linux (#18997) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit when attempting to enable client debugging on blazor-wasm an attempt to provide a helpful message casues an ¨Unknown OS platform¨ exception relates to #16366 #12970 --- .../MonoDebugProxy/BlazorMonoDebugProxyAppBuilderExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Blazor/Server/src/MonoDebugProxy/BlazorMonoDebugProxyAppBuilderExtensions.cs b/src/Components/Blazor/Server/src/MonoDebugProxy/BlazorMonoDebugProxyAppBuilderExtensions.cs index 394ccbe718..1e88ba5264 100644 --- a/src/Components/Blazor/Server/src/MonoDebugProxy/BlazorMonoDebugProxyAppBuilderExtensions.cs +++ b/src/Components/Blazor/Server/src/MonoDebugProxy/BlazorMonoDebugProxyAppBuilderExtensions.cs @@ -337,7 +337,7 @@ namespace Microsoft.AspNetCore.Builder } else { - throw new InvalidOperationException("Unknown OS platform"); + return $@"

Edge is not current supported on your platform

"; } }