Skip to content

Commit

Permalink
Cleaner error when an input is not a managed assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Osenkov committed Mar 19, 2024
1 parent 3b5334f commit 8df04e7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ILRepack/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,17 @@ static int Main(string[] args)
error = e.Message;
}

logger?.LogError(error);
// we've already printed the error earlier
if (error.StartsWith("System.InvalidOperationException: ILRepack does not support merging"))
{
error = null;
}

if (error != null)
{
logger?.LogError(error);
}

returnCode = 1;
}
finally
Expand Down

0 comments on commit 8df04e7

Please sign in to comment.