Skip to content

Commit

Permalink
Removed stray #if
Browse files Browse the repository at this point in the history
  • Loading branch information
droyad committed Jul 26, 2024
1 parent 3776ee9 commit 8431c4d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/dbup-redshift/RedshiftScriptExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ protected override void ExecuteCommandsWithinExceptionHandler(int index, SqlScri
{
excuteCommand();
}
#if NPGSQLv2
catch (NpgsqlException exception)
#else
catch (PostgresException exception)
#endif
{
Log().LogInformation("Npgsql exception has occured in script: '{0}'", script.Name);
Log().LogError("Script block number: {0}; Block line {1}; Position: {2}; Message: {3}", index, exception.Line, exception.Position, exception.Message);
Expand Down

0 comments on commit 8431c4d

Please sign in to comment.