Skip to content

Commit

Permalink
7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ariacom committed Oct 26, 2023
1 parent 2d16ecb commit 5222521
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions Projects/SealLibrary/SealLibrary.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
<PackageReference Include="SharpZipLib" Version="1.4.2" />
<PackageReference Include="SSH.NET" Version="2023.0.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.5" />
<PackageReference Include="System.Drawing.Primitives" Version="4.3.0" />
<PackageReference Include="System.IO.FileSystem.AccessControl" Version="5.0.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="TaskScheduler" Version="2.10.1" />
Expand Down
4 changes: 3 additions & 1 deletion Projects/SealLibraryWin/Helpers/RazorHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
using System.Security.AccessControl;
using Twilio.Rest.Api.V2010.Account;
using System.Net;
using System.Drawing;

namespace Seal.Helpers
{
Expand Down Expand Up @@ -79,6 +80,7 @@ public class RazorHelper
static FileSystemAccessRule _29 = null;
static MessageResource.ScheduleTypeEnum _30 = null;
static WebProxy _31 = null;
static Color? _32 = null;

static int _loadTries = 3;
static public void LoadRazorAssemblies()
Expand Down Expand Up @@ -149,7 +151,7 @@ static public void LoadRazorAssemblies()
if (_29 == null) _29 = new FileSystemAccessRule("a",FileSystemRights.Read,AccessControlType.Deny);
if (_30 == null) _30 = new MessageResource.ScheduleTypeEnum();
if (_31 == null) _31 = new WebProxy();

if (_32 == null) _32 = ColorTranslator.FromHtml("#00000");

#if !WINDOWS
var si = SealInterface.Create();
Expand Down
6 changes: 5 additions & 1 deletion Projects/SealLibraryWin/Model/ReportExecution.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,11 @@ private void executeCellScript(ResultCell cell)
}
catch (Exception ex)
{
Report.ExecutionMessages += string.Format("Error got when executing Cell script for '{0}' in model '{1}'\r\n{2}\r\n", cell.Element.DisplayNameEl, cell.Element.Model.Name, ex.Message);
var header = $"Error got when executing Cell script for '{cell.Element.DisplayNameEl}' in model '{cell.Element.Model.Name}'\r\n";
if (!Report.ExecutionMessages.Contains(header))
{
Report.ExecutionMessages += $"{header}{ex.Message}\r\n";
}
}
}

Expand Down

0 comments on commit 5222521

Please sign in to comment.