From d4b265b386165e5ff6d581d1752718f48a0228ac Mon Sep 17 00:00:00 2001 From: tidusjar Date: Mon, 1 Mar 2021 21:25:18 +0000 Subject: [PATCH] Updated with docs info --- src/Ombi/Program.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Ombi/Program.cs b/src/Ombi/Program.cs index 6ccfc811a..0c27c1073 100644 --- a/src/Ombi/Program.cs +++ b/src/Ombi/Program.cs @@ -271,7 +271,14 @@ namespace Ombi sb.Insert(headPosition + 6, $""); - await File.WriteAllTextAsync(indexPath, sb.ToString()); + try + { + await File.WriteAllTextAsync(indexPath, sb.ToString()); + } + catch (UnauthorizedAccessException) + { + Console.WriteLine("Error attempting to write Base URL, see here: https://docs.ombi.app/info/faq/#unauthorized-access-to-indexhtml"); + } Console.WriteLine($"Wrote new baseurl at {indexPath}"); }