Skip to content

Commit

Permalink
refactor(dsgen): refactoring of preproc if/else/endif
Browse files Browse the repository at this point in the history
  • Loading branch information
A-H4NU committed Aug 25, 2023
1 parent 7c2594e commit 7655a38
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions dsgen/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,18 @@ private static int Main(string[] args)
{
Column.Initialize();
}
#if DEBUG
catch (Exception ex)
{
#if DEBUG
ConsoleUtil.WriteException(ex);
return EXIT_ERROR;
}
#else
catch (Exception ex)
{
if (ex is ColumnConstraintException)
ConsoleUtil.WriteException(ex);
else
ConsoleUtil.WriteError(FailedToInitializeMessage);
#endif
return EXIT_ERROR;
}
#endif
return result.MapResult(
options => RunAndGetExitCode(options, args),
errors => WriteHelpAndGetExitCode(result)
Expand Down

0 comments on commit 7655a38

Please sign in to comment.