From 5e68bf7c21012f1da0bfe7973d8b4bba16149593 Mon Sep 17 00:00:00 2001 From: Andy Butland Date: Tue, 22 Jul 2025 19:00:44 +0200 Subject: [PATCH] Log the migration plan name when can't migrate from state (#19772) Log the migration plan name when can't migrate from state. --- src/Umbraco.Infrastructure/Migrations/MigrationPlan.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Infrastructure/Migrations/MigrationPlan.cs b/src/Umbraco.Infrastructure/Migrations/MigrationPlan.cs index df8e85a562..6509e43eef 100644 --- a/src/Umbraco.Infrastructure/Migrations/MigrationPlan.cs +++ b/src/Umbraco.Infrastructure/Migrations/MigrationPlan.cs @@ -365,7 +365,7 @@ public class MigrationPlan /// Throws an exception when the initial state is unknown. /// public virtual void ThrowOnUnknownInitialState(string state) => - throw new InvalidOperationException($"The migration plan does not support migrating from state \"{state}\"."); + throw new InvalidOperationException($"The migration plan \"{Name}\" does not support migrating from state \"{state}\"."); /// /// Follows a path (for tests and debugging).