From 987c4401a3d90ba3e711deb3ac21fb950d109a2b Mon Sep 17 00:00:00 2001 From: perploug Date: Mon, 30 Sep 2013 23:32:35 +0200 Subject: [PATCH] U4-2852: Fixes error messages --- src/Umbraco.Web/UI/LegacyDialogHandler.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web/UI/LegacyDialogHandler.cs b/src/Umbraco.Web/UI/LegacyDialogHandler.cs index 7e45c401d2..b6f6f2fb64 100644 --- a/src/Umbraco.Web/UI/LegacyDialogHandler.cs +++ b/src/Umbraco.Web/UI/LegacyDialogHandler.cs @@ -68,16 +68,17 @@ namespace Umbraco.Web.UI var del = def.SelectSingleNode("./tasks/" + operationNode); if (del == null) { - throw new InvalidOperationException("No delete task found for node type " + nodeType); + throw new InvalidOperationException("No " + operationNode + " task found for node type " + nodeType); } if (!del.Attributes.HasAttribute("assembly")) { - throw new InvalidOperationException("No assembly attribute found for delete task for node type " + nodeType); + throw new InvalidOperationException("No assembly attribute found for " + operationNode + " task for node type " + nodeType); } var taskAssembly = del.AttributeValue("assembly"); + if (!del.Attributes.HasAttribute("type")) { - throw new InvalidOperationException("No type attribute found for delete task for node type " + nodeType); + throw new InvalidOperationException("No type attribute found for " + operationNode + " task for node type " + nodeType); } var taskType = del.AttributeValue("type");