Don't kill the process when we cannot find the baseurl

This commit is contained in:
tidusjar 2021-03-01 12:17:14 +00:00
commit 0d97d23dde

View file

@ -258,7 +258,7 @@ namespace Ombi
{
var error = $"Can't set the base URL because we cannot find the file at '{indexPath}', if you are trying to set a base url please report this on Github!";
Console.WriteLine(error);
throw new Exception(error);
return;
}
var indexHtml = await File.ReadAllTextAsync(indexPath);
var sb = new StringBuilder(indexHtml);