mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-01-15 11:05:18 +00:00
Fix error messages
This commit is contained in:
parent
43823cab57
commit
91e6825cb2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user