Log the migration plan name when can't migrate from state (#19772)

Log the migration plan name when can't migrate from state.
This commit is contained in:
Andy Butland
2025-07-22 19:00:44 +02:00
committed by GitHub
parent 6a5b1a76cc
commit 5e68bf7c21

View File

@@ -365,7 +365,7 @@ public class MigrationPlan
/// Throws an exception when the initial state is unknown.
/// </summary>
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}\".");
/// <summary>
/// Follows a path (for tests and debugging).