Skip to content

Commit

Permalink
feat: enhancing dllworker logs when unziping dll files
Browse files Browse the repository at this point in the history
correct log

message when now good

show found folder

testing

simpliflied log
  • Loading branch information
italo1aguiar-aneo committed Jun 11, 2024
1 parent b3ffd92 commit 6c4a45a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Worker/src/Common/Archive/ZipArchiver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using System;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Threading;

using ArmoniK.DevelopmentKit.Common.Exceptions;
Expand Down Expand Up @@ -127,8 +128,9 @@ public string ExtractArchive(string filename,
//Check now if the assembly is present
if (!File.Exists(mainAssembly))
{
throw new WorkerApiException($"Fail to find assembly {mainAssembly}. Something went wrong during the extraction. " +
$"Please make sure that the folder tree inside the zip file is {packageId.ApplicationName}/{packageId.ApplicationVersion}/*.dll");

throw new WorkerApiException($"Fail to find assembly {mainAssembly}. The extracted zip should have the following structure" +
$" {packageId.ApplicationName}/{packageId.ApplicationVersion}/ which will contains all the dll files.");
}

return pathToAssemblyDir;
Expand Down

0 comments on commit 6c4a45a

Please sign in to comment.