From 5380877da4742863600ff550f9b6a2eef6618ea8 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 4 Jul 2024 08:28:20 +0200 Subject: [PATCH] tests: Added error message when no description is used --- tests/patterns/source/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/patterns/source/main.cpp b/tests/patterns/source/main.cpp index 900fb8a..ade89dd 100644 --- a/tests/patterns/source/main.cpp +++ b/tests/patterns/source/main.cpp @@ -83,5 +83,11 @@ int main(int argc, char **argv) { return EXIT_FAILURE; } - return hasDescription ? EXIT_SUCCESS : EXIT_FAILURE; + if (!hasDescription) { + fmt::print("No description pragma found in pattern file\n"); + fmt::print("Please add a #pragma description tag to the pattern!\n"); + return EXIT_FAILURE; + } + + return EXIT_SUCCESS; }