Skip to content

Commit

Permalink
Merge pull request #10 from mdallago/master
Browse files Browse the repository at this point in the history
fixed not proper rethrow
  • Loading branch information
Martin Murphy committed May 27, 2014
2 parents 305da71 + 2005a06 commit 963e540
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions Mite/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,16 +321,7 @@ private static void Resolve(Migrator migrator)
private static string CreateMigration(string scriptFileName = "")
{
var executingDirectory = Environment.CurrentDirectory;
string baseName = scriptFileName;

try
{
baseName = GetMigrationFileName(scriptFileName);
}
catch (Exception ex)
{
throw ex;
}
var baseName = GetMigrationFileName(scriptFileName);
var fileName = baseName + ".sql";
var fullPath = Path.Combine(executingDirectory, fileName);
var newlines = Environment.NewLine + Environment.NewLine;
Expand Down

0 comments on commit 963e540

Please sign in to comment.