Browse Source

Add exception details for algolia.

pull/426/head
Sebastian Stehle 6 years ago
parent
commit
7274382b0c
  1. 5
      extensions/Squidex.Extensions/Actions/Algolia/AlgoliaActionHandler.cs

5
extensions/Squidex.Extensions/Actions/Algolia/AlgoliaActionHandler.cs

@ -5,6 +5,7 @@
// All rights reserved. Licensed under the MIT license. // All rights reserved. Licensed under the MIT license.
// ========================================================================== // ==========================================================================
using System;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Algolia.Search; using Algolia.Search;
@ -72,9 +73,9 @@ namespace Squidex.Extensions.Actions.Algolia
json = JObject.Parse(jsonString); json = JObject.Parse(jsonString);
} }
catch catch (Exception ex)
{ {
json = new JObject(new JProperty("error", "Invalid JSON")); json = new JObject(new JProperty("error", $"Invalid JSON: {ex.Message}"));
} }
ruleJob.Content = json; ruleJob.Content = json;

Loading…
Cancel
Save