Skip to content

Commit 18546ed

Browse files
author
Sergey Koshcheyev
committed
Improve exception message
SVN: trunk@2504
1 parent 620b52c commit 18546ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/NHibernate/Connection/ConnectionProvider.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ public virtual void Configure( IDictionary settings )
5959
#endif
6060
if( connString == null )
6161
{
62-
throw new HibernateException( "Could not find connection string setting" );
62+
throw new HibernateException( "Could not find connection string setting (set " +
63+
Environment.ConnectionString +
64+
" or " +
65+
Environment.ConnectionStringName +
66+
" property)");
6367
}
6468

6569
ConfigureDriver( settings );

0 commit comments

Comments
 (0)