updated exception logging.

This commit is contained in:
Keivan Beigi 2013-06-12 16:40:57 -07:00
parent 736cd90b94
commit 1585234055
2 changed files with 2 additions and 7 deletions

View file

@ -65,8 +65,8 @@ namespace Marr.Data.Mapping
}
catch (Exception ex)
{
string msg = string.Format("The DataMapper was unable to load the following field: '{0}'.",
dataMap.ColumnInfo.Name);
string msg = string.Format("The DataMapper was unable to load the following field: '{0}'. {1}",
dataMap.ColumnInfo.Name, ex.Message);
throw new DataMappingException(msg, ex);
}