Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 68f2d17

Browse files
committed
Only catch JsonException in the method that dispatches to the appropriate handlers
1 parent 21cb95f commit 68f2d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dotnet/commands/dotnet-run/LaunchSettings/LaunchSettingsManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static LaunchSettingsApplyResult TryApplyLaunchSettings(string launchSett
8282

8383
return provider.TryApplySettings(model, profileObject, ref command);
8484
}
85-
catch (Exception ex)
85+
catch (JsonException ex)
8686
{
8787
return new LaunchSettingsApplyResult(false, string.Format(LocalizableStrings.UnexpectedExceptionProcessingLaunchSettings, ex.Message));
8888
}

0 commit comments

Comments
 (0)