Skip to content

Commit 98b467c

Browse files
author
Sergey Koshcheyev
committed
Add the required XML namespace to the error message so that people have more chance of finding what's wrong with their configs.
SVN: trunk@2636
1 parent 1b2b55a commit 98b467c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Cfg/Configuration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ protected Configuration DoConfigure( XmlDocument doc )
13441344

13451345
if( sfNode == null )
13461346
{
1347-
throw new MappingException( "<session-factory> element was not found in the configuration file." );
1347+
throw new MappingException("<session-factory xmlns='" + CfgSchemaXMLNS + "'> element was not found in the configuration file.");
13481348
}
13491349

13501350
XmlAttribute nameNode = sfNode.Attributes[ "name" ];

0 commit comments

Comments
 (0)