diff options
author | AlexRa | 2010-05-19 17:00:02 +0300 |
---|---|---|
committer | AlexRa | 2010-05-19 21:49:18 +0300 |
commit | 527a257b9fac15273ae232f66533f47b2112ec2e (patch) | |
tree | ff8ed91b508ec282dd03c24ce8fcec7811c76633 /OpenSim/Data/Migration.cs | |
parent | Change appender to deal with line feeds more intelligently. (diff) | |
download | opensim-SC_OLD-527a257b9fac15273ae232f66533f47b2112ec2e.zip opensim-SC_OLD-527a257b9fac15273ae232f66533f47b2112ec2e.tar.gz opensim-SC_OLD-527a257b9fac15273ae232f66533f47b2112ec2e.tar.bz2 opensim-SC_OLD-527a257b9fac15273ae232f66533f47b2112ec2e.tar.xz |
Kind of fixed Melanie's "Exception(sql)" correction
Throwing an Ex. with SQL command in the message looks weird,
this is a bit better, but I'm still not sure if that's the
proper way to handle. Also, there is a catch one level up,
so is this one necessary?
Diffstat (limited to 'OpenSim/Data/Migration.cs')
-rw-r--r-- | OpenSim/Data/Migration.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Data/Migration.cs b/OpenSim/Data/Migration.cs index 6d4807f..4f113a2 100644 --- a/OpenSim/Data/Migration.cs +++ b/OpenSim/Data/Migration.cs | |||
@@ -150,9 +150,9 @@ namespace OpenSim.Data | |||
150 | { | 150 | { |
151 | cmd.ExecuteNonQuery(); | 151 | cmd.ExecuteNonQuery(); |
152 | } | 152 | } |
153 | catch | 153 | catch(Exception e) |
154 | { | 154 | { |
155 | throw new Exception(sql); | 155 | throw new Exception(e.Message + " in SQL: " + sql); |
156 | } | 156 | } |
157 | } | 157 | } |
158 | } | 158 | } |