Skip to content

Commit 4c63e9e

Browse files
Fix exceptions
1 parent f8ce52e commit 4c63e9e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Microsoft.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,13 @@ LOG ON
182182
cmd.ExecuteNonQuery();
183183
_fileStreamDBName = dbName;
184184
}
185-
return _fileStreamDBName;
186185
}
187-
catch (Exception e)
186+
catch (SqlException e)
188187
{
189188
Console.WriteLine("File Stream database could not be setup. " + e.Message);
190189
FileStreamDirectory = null;
191-
throw e;
192190
}
191+
return _fileStreamDBName;
193192
}
194193

195194
internal static void DropFileStreamDb()
@@ -205,7 +204,6 @@ internal static void DropFileStreamDb()
205204
{
206205
Console.WriteLine("File Stream database could not be dropped. " + e.Message);
207206
FileStreamDirectory = null;
208-
throw e;
209207
}
210208
}
211209

0 commit comments

Comments
 (0)