Skip to content

Commit

Permalink
Handle all exceptions, log to console and exit with code -1.
Browse files Browse the repository at this point in the history
  • Loading branch information
lvernaillen committed Oct 14, 2014
1 parent 6517a7a commit 2b19104
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/MessTalk/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ static void Main(string[] args)
Console.WriteLine(ex.Message);
Console.WriteLine(ArgUsage.GenerateUsageFromTemplate<ProgramArguments>());
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
Environment.Exit(-1);
}
}

private static string TransformModel(NamedModel model, string template)
Expand Down

0 comments on commit 2b19104

Please sign in to comment.