Skip to content

Commit 5e68bf7

Browse files
authored
Log the migration plan name when can't migrate from state (#19772)
Log the migration plan name when can't migrate from state.
1 parent 6a5b1a7 commit 5e68bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Infrastructure/Migrations/MigrationPlan.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public void Validate()
365365
/// Throws an exception when the initial state is unknown.
366366
/// </summary>
367367
public virtual void ThrowOnUnknownInitialState(string state) =>
368-
throw new InvalidOperationException($"The migration plan does not support migrating from state \"{state}\".");
368+
throw new InvalidOperationException($"The migration plan \"{Name}\" does not support migrating from state \"{state}\".");
369369

370370
/// <summary>
371371
/// Follows a path (for tests and debugging).

0 commit comments

Comments
 (0)