Log syntax error in command line
This commit is contained in:
parent
23e6383487
commit
8a313c74db
2 changed files with 3 additions and 5 deletions
|
@ -293,9 +293,7 @@ void menu_photorec(disk_t *disk_car, const int verbose, const char *recup_dir, f
|
|||
}
|
||||
else
|
||||
{
|
||||
log_critical("error >%s<\n",*current_cmd);
|
||||
while(*current_cmd[0]!='\0')
|
||||
(*current_cmd)++;
|
||||
log_critical("Syntax error in command line: %s\n",*current_cmd);
|
||||
part_free_list(list_part);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -410,8 +410,8 @@ int main( int argc, char **argv )
|
|||
}
|
||||
else if(cmd_run[0]!='\0')
|
||||
{
|
||||
log_critical("error in command line: %s\n",cmd_run);
|
||||
printf("error in command line: %s\n",cmd_run);
|
||||
log_critical("Syntax error in command line: %s\n",cmd_run);
|
||||
printf("Syntax error in command line: %s\n",cmd_run);
|
||||
}
|
||||
}
|
||||
switch(command)
|
||||
|
|
Loading…
Reference in a new issue