projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ea9c9b
)
Improve error message, based ona patch from Brad Langhorst
author
Miguel de Icaza
<miguel@gnome.org>
Sat, 15 Mar 2008 19:38:17 +0000
(19:38 -0000)
committer
Miguel de Icaza
<miguel@gnome.org>
Sat, 15 Mar 2008 19:38:17 +0000
(19:38 -0000)
svn path=/trunk/mcs/; revision=98395
mcs/class/Mono.Data/ProviderFactory.cs
patch
|
blob
|
history
diff --git
a/mcs/class/Mono.Data/ProviderFactory.cs
b/mcs/class/Mono.Data/ProviderFactory.cs
index f86fce1bf8499784bdb8151b9f51b57584786034..7f0d9899675a9244933441d508d6946650d0ba89 100644
(file)
--- a/
mcs/class/Mono.Data/ProviderFactory.cs
+++ b/
mcs/class/Mono.Data/ProviderFactory.cs
@@
-99,6
+99,10
@@
namespace Mono.Data
throw new System.ArgumentNullException ("ConnectionString");
\r
\r
Provider provider = providers [ProviderName];
\r
+
\r
+ if (provider == null)
\r
+ throw new ArgumentException ("ProviderName", "The specified provider does not exist");
\r
+
\r
IDbConnection conn = provider.CreateConnection ();
\r
conn.ConnectionString = ConnectionString;
\r
return conn;
\r