Expand TrangaBaseContext sync exception message

This commit is contained in:
2025-10-16 21:37:15 +02:00
parent ea18e35c31
commit f1805231c6

View File

@@ -1,4 +1,3 @@
using API.Workers;
using log4net;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Diagnostics;
@@ -37,7 +36,7 @@ public abstract class TrangaBaseContext<T> : DbContext where T : DbContext
}
catch (Exception e)
{
Log.Error("Sync failed:", e);
Log.Error($"Syncing {changesCount} changes {GetType().Name} {trigger?.Name} {reason} failed:", e);
return (false, e.Message);
}
}