Skip to content

Commit

Permalink
Fix error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Waujito committed Jan 3, 2025
1 parent 43823ca commit 91e6825
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/youtubeUnblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,11 +578,11 @@ int init_queue(int queue_num) {

ret = mnl_cb_run(buf, ret, 0, portid, queue_cb, &qdata);
if (ret < 0) {
lgerror(-EPERM, "mnl_cb_run");
if (errno == EPERM) {
lgerror(-errno, "Probably another instance of youtubeUnblock with the same queue number is running\n");
lgerror(ret, "mnl_cb_run");
if (ret == -EPERM) {
lgerr("Probably another instance of youtubeUnblock with the same queue number is running\n");
} else {
lgerror(-errno, "Make sure the nfnetlink_queue kernel module is loaded\n");
lgerr("Make sure the nfnetlink_queue kernel module is loaded\n");
}
goto die;
}
Expand Down

0 comments on commit 91e6825

Please sign in to comment.