From df72dcfc27e27735c84c68507426a568799b66e9 Mon Sep 17 00:00:00 2001 From: Mateo Torres-Ruiz Date: Tue, 12 May 2020 23:58:58 -0700 Subject: Use MessageContainer for logging errors (#1155) * Log errors via MessageContainer * Use LinkerErrorExceptions for all throws. Don't stop linker on first error found. * Move FoundErrors to LinkContext and clean exceptions. * Use same code for errors with same message. * Fix test and whitespace formatting * Update exit message Co-authored-by: Marek Safar * Add error for unexpected scenarios. * Print all inner exceptions. * Update FeatureSubstitutionsInvalid test. * Update docs/error-codes.md Co-authored-by: Sven Boemer * Print all inner exceptions in LinkerFatalErrorException * Whitespace formatting Co-authored-by: Marek Safar Co-authored-by: Sven Boemer --- .../Assertions/NoLinkedOutputAttribute.cs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/Mono.Linker.Tests.Cases.Expectations/Assertions/NoLinkedOutputAttribute.cs (limited to 'test/Mono.Linker.Tests.Cases.Expectations/Assertions') diff --git a/test/Mono.Linker.Tests.Cases.Expectations/Assertions/NoLinkedOutputAttribute.cs b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/NoLinkedOutputAttribute.cs new file mode 100644 index 000000000..0537a62e1 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases.Expectations/Assertions/NoLinkedOutputAttribute.cs @@ -0,0 +1,9 @@ +using System; + +namespace Mono.Linker.Tests.Cases.Expectations.Assertions +{ + public class NoLinkedOutputAttribute : Attribute + { + public NoLinkedOutputAttribute () { } + } +} -- cgit v1.2.3