Skip to content

Commit

Permalink
Merge pull request #5 from trustpilot/make-sure-aem-does-not-crash
Browse files Browse the repository at this point in the history
Make sure aem does not crash
  • Loading branch information
bjarkefr authored Jan 30, 2017
2 parents 878ba85 + da37c5a commit 0121481
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Aem/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.CommandLine;
using System.IO;
using System.Net;
using System.Security.Cryptography;
using System.Text;
using AuthenticatedEncryption;
using Microsoft.Extensions.Configuration;
Expand Down Expand Up @@ -48,6 +49,12 @@ public static void Main(string[] args)

Environment.Exit(1);
}
catch (CryptographicException cryptographicException)
{
Console.Error.WriteLine($"error: {cryptographicException.Message}");

Environment.Exit(1);
}
break;
}
}
Expand Down

0 comments on commit 0121481

Please sign in to comment.