Always print error messages to stderr

Do not depend on the debug level set with --verbose
pull/1875/head
Daniele Forsi IU5HKX 2025-09-02 21:45:44 +02:00
rodzic 632746cf91
commit e4c43821d0
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -1584,7 +1584,7 @@ void list_models()
if (status != RIG_OK)
{
rig_debug(RIG_DEBUG_ERR, "amp_list_foreach: error = %s \n", rigerror(status));
fprintf(stderr, "amp_list_foreach: error = %s \n", rigerror2(status));
exit(2);
}

Wyświetl plik

@ -2154,7 +2154,7 @@ void list_models()
if (status != RIG_OK)
{
rig_debug(RIG_DEBUG_ERR, "rig_list_foreach: error = %s \n", rigerror(status));
fprintf(stderr, "rig_list_foreach: error = %s \n", rigerror2(status));
exit(2);
}

Wyświetl plik

@ -1667,7 +1667,7 @@ void list_models()
if (status != RIG_OK)
{
rig_debug(RIG_DEBUG_ERR, "rot_list_foreach: error = %s \n", rigerror(status));
fprintf(stderr, "rot_list_foreach: error = %s \n", rigerror2(status));
exit(2);
}