tests: Added error message when no description is used

This commit is contained in:
WerWolv
2024-07-04 08:28:20 +02:00
parent bb46276bde
commit 5380877da4

View File

@@ -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 <your description> tag to the pattern!\n");
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}