From c2353eaeb2eee3ef373e805922ab04050b405286 Mon Sep 17 00:00:00 2001 From: Jimmy Byrd Date: Sat, 9 May 2020 14:23:14 -0400 Subject: [PATCH] Don't hard fail on docstool if can't open browser --- Content/Library/docsTool/Program.fs | 2 +- docsTool/Program.fs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Content/Library/docsTool/Program.fs b/Content/Library/docsTool/Program.fs index 3583404f..38e96be2 100644 --- a/Content/Library/docsTool/Program.fs +++ b/Content/Library/docsTool/Program.fs @@ -535,7 +535,7 @@ module WebServer = let openBrowser url = let waitForExit (proc : Process) = proc.WaitForExit() - if proc.ExitCode <> 0 then failwithf "opening browser failed" + if proc.ExitCode <> 0 then eprintf "opening browser failed, open your browser and navigate to url to see the docs site." try let psi = ProcessStartInfo(FileName = url, UseShellExecute = true) Process.Start psi diff --git a/docsTool/Program.fs b/docsTool/Program.fs index 6dc1e669..afdd2144 100644 --- a/docsTool/Program.fs +++ b/docsTool/Program.fs @@ -453,7 +453,7 @@ module WebServer = let openBrowser url = let waitForExit (proc : Process) = proc.WaitForExit() - if proc.ExitCode <> 0 then failwithf "opening browser failed" + if proc.ExitCode <> 0 then eprintf "opening browser failed, open your browser and navigate to url to see the docs site." try let psi = ProcessStartInfo(FileName = url, UseShellExecute = true) Process.Start psi