|
|
|
@ -224,17 +224,13 @@ namespace Squidex.Domain.Apps.Core.Scripting |
|
|
|
{ |
|
|
|
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) |
|
|
|
{ |
|
|
|
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() })); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|