Skip to content

Commit

Permalink
Handling exceptions, returning 1 after logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
janstaelensskyline committed Dec 22, 2023
1 parent 5625b58 commit 649782c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CICD.Tools.CatalogUpload/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Microsoft.Extensions.Logging;

using Serilog;
using Serilog.Core;

using Skyline.DataMiner.CICD.Tools.CatalogUpload.Lib;
using Skyline.DataMiner.CICD.Tools.Reporter;
Expand Down Expand Up @@ -175,7 +176,8 @@ private static async Task<int> ProcessWithRegistrationAsync(string pathToArtifac
catch (Exception e)
{
devopsMetricsMessage += "|" + "Status:Fail-" + e.Message;
throw;
Console.WriteLine("Exception: " + e);
return 1;
}
finally
{
Expand Down

0 comments on commit 649782c

Please sign in to comment.