Skip to content

Commit 0617347

Browse files
committed
err messages [skip ci]
1 parent 16bc608 commit 0617347

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MaterialDesignThemes.Wpf/DialogHost.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ public static async Task<object> Show(object content, object dialogIndetifier, D
174174

175175
var targets = LoadedInstances.Where(dh => Equals(dh.Identifier, dialogIndetifier)).ToList();
176176
if (targets.Count == 0)
177-
throw new InvalidOperationException("No loaded DialogHost matches identifier.");
177+
throw new InvalidOperationException("No loaded DialogHost have an Identifier property matching dialogIndetifier argument.");
178178
if (targets.Count > 1)
179-
throw new InvalidOperationException("Multiple viable DialogHosts. Specify a unique identifier.");
179+
throw new InvalidOperationException("Multiple viable DialogHosts. Specify a unique Identifier on each DialogHost, especially where multiple Windows are a concern.");
180180
if (targets[0].IsOpen)
181181
throw new InvalidOperationException("DialogHost is already open.");
182182

0 commit comments

Comments
 (0)