[mapguide-commits] r7154 - in trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI: . Resource/Validation
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Wed Oct 24 23:26:11 PDT 2012
Author: jng
Date: 2012-10-24 23:26:10 -0700 (Wed, 24 Oct 2012)
New Revision: 7154
Modified:
trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/Validation/BaseLayerDefinitionValidator.cs
trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Strings.Designer.cs
trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Strings.resx
Log:
Include exception information for generic layer validation failure
Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/Validation/BaseLayerDefinitionValidator.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/Validation/BaseLayerDefinitionValidator.cs 2012-10-25 06:01:38 UTC (rev 7153)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Resource/Validation/BaseLayerDefinitionValidator.cs 2012-10-25 06:26:10 UTC (rev 7154)
@@ -141,9 +141,9 @@
else if (!foundGeometry)
issues.Add(new ValidationIssue(resource, ValidationStatus.Error, ValidationStatusCode.Error_LayerDefinition_GeometryNotFound, string.Format(Strings.LDF_GeometryMissingError, geometry, qualClassName, fs.ResourceID)));
}
- catch (Exception)
+ catch (Exception ex)
{
- issues.Add(new ValidationIssue(fs, ValidationStatus.Error, ValidationStatusCode.Error_LayerDefinition_Generic, string.Format(Strings.LDF_SchemaAndColumnReadFailedError)));
+ issues.Add(new ValidationIssue(fs, ValidationStatus.Error, ValidationStatusCode.Error_LayerDefinition_Generic, string.Format(Strings.LDF_SchemaAndColumnReadFailedError, ex.ToString())));
}
if (recurse)
Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Strings.Designer.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Strings.Designer.cs 2012-10-25 06:01:38 UTC (rev 7153)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Strings.Designer.cs 2012-10-25 06:26:10 UTC (rev 7154)
@@ -1620,7 +1620,7 @@
}
/// <summary>
- /// Looks up a localized string similar to Failed to validate column and schema.
+ /// Looks up a localized string similar to Failed to validate column and schema: {0}.
/// </summary>
public static string LDF_SchemaAndColumnReadFailedError {
get {
Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Strings.resx
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Strings.resx 2012-10-25 06:01:38 UTC (rev 7153)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/Strings.resx 2012-10-25 06:26:10 UTC (rev 7154)
@@ -2869,7 +2869,7 @@
<value>The scale range {0}-{1} overlaps the range {2}-{3}</value>
</data>
<data name="LDF_SchemaAndColumnReadFailedError" xml:space="preserve">
- <value>Failed to validate column and schema</value>
+ <value>Failed to validate column and schema: {0}</value>
</data>
<data name="LDF_SchemaMissingError" xml:space="preserve">
<value>Failed to find schema {0} in featuresource {1}</value>
More information about the mapguide-commits
mailing list