mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-28 07:47:02 -05:00
tests: Added error message when no description is used
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user