From 527a257b9fac15273ae232f66533f47b2112ec2e Mon Sep 17 00:00:00 2001 From: AlexRa Date: Wed, 19 May 2010 17:00:02 +0300 Subject: 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? --- OpenSim/Data/Migration.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim') 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 { cmd.ExecuteNonQuery(); } - catch + catch(Exception e) { - throw new Exception(sql); + throw new Exception(e.Message + " in SQL: " + sql); } } } -- cgit v1.1