Browse Source

Provide a few internals for scripting.

pull/802/head
Sebastian 4 years ago
parent
commit
c646095916
  1. 8
      backend/src/Squidex.Domain.Apps.Core.Operations/Scripting/JintScriptEngine.cs

8
backend/src/Squidex.Domain.Apps.Core.Operations/Scripting/JintScriptEngine.cs

@ -224,17 +224,13 @@ namespace Squidex.Domain.Apps.Core.Scripting
{ {
throw new ValidationException(T.Get("common.jsError", new { message = ex.Message })); throw new ValidationException(T.Get("common.jsError", new { message = ex.Message }));
} }
catch (OperationCanceledException)
{
throw new ValidationException(T.Get("common.jsError", new { message = "Timeout" }));
}
catch (DomainException) catch (DomainException)
{ {
throw; throw;
} }
catch catch (Exception ex)
{ {
throw new ValidationException(T.Get("common.jsError", new { message = "RuntimeError" })); throw new ValidationException(T.Get("common.jsError", new { message = ex.ToString() }));
} }
} }
} }

Loading…
Cancel
Save