Skip to content

Commit

Permalink
Give the user a change to get help before failing because of missing …
Browse files Browse the repository at this point in the history
…magic.
  • Loading branch information
mgautierfr committed Oct 10, 2023
1 parent 714c88b commit 109afe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zimwriterfs/zimwriterfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ void create_zim(const zim::Metadata& metadata)
/* Main program entry point */
int main(int argc, char** argv)
{
parse_args(argc, argv);

Check warning on line 491 in src/zimwriterfs/zimwriterfs.cpp

View check run for this annotation

Codecov / codecov/patch

src/zimwriterfs/zimwriterfs.cpp#L491

Added line #L491 was not covered by tests

/* Init */
magic = magic_open(MAGIC_MIME);
if (magic_load(magic, NULL) != 0) {
Expand All @@ -499,8 +501,6 @@ int main(int argc, char** argv)
pthread_mutex_init(&verboseMutex, NULL);

try {
parse_args(argc, argv);

const zim::Metadata metadata = makeMetadata();

if ( !checkMetadata(metadata) ) {
Expand Down

0 comments on commit 109afe5

Please sign in to comment.