Skip to content

Commit

Permalink
Fix exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
cheenamalhotra committed Aug 31, 2021
1 parent f8ce52e commit 4c63e9e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,13 @@ LOG ON
cmd.ExecuteNonQuery();
_fileStreamDBName = dbName;
}
return _fileStreamDBName;
}
catch (Exception e)
catch (SqlException e)
{
Console.WriteLine("File Stream database could not be setup. " + e.Message);
FileStreamDirectory = null;
throw e;
}
return _fileStreamDBName;
}

internal static void DropFileStreamDb()
Expand All @@ -205,7 +204,6 @@ internal static void DropFileStreamDb()
{
Console.WriteLine("File Stream database could not be dropped. " + e.Message);
FileStreamDirectory = null;
throw e;
}
}

Expand Down

0 comments on commit 4c63e9e

Please sign in to comment.