mirror of https://github.com/MidnightCommander/mc
It is _never_ good idea to ignore errors. People than expect
everything is going ok. Ok, I've now limited number of "could not parse" error messages to 5 per session. Lower this limit if it makes you crazy, but DO NOT REMOVE those messages.
This commit is contained in:
parent
bd8f6266b7
commit
58dbdc168e
|
@ -2,6 +2,7 @@
|
|||
|
||||
* vfs.c (vfs_parse_filemode): fix for solaris which uses 'l'
|
||||
instead of 'S'.
|
||||
(vfs_parse_ls_lga): do not silently ignore parsing errors.
|
||||
|
||||
Wed Apr 21 21:59:50 1999 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||
|
||||
|
|
12
vfs/vfs.c
12
vfs/vfs.c
|
@ -1736,9 +1736,15 @@ vfs_parse_ls_lga (char *p, struct stat *s, char **filename, char **linkname)
|
|||
return 1;
|
||||
|
||||
error:
|
||||
#if 0
|
||||
message_1s (1, "Could not parse:", p_copy);
|
||||
#endif
|
||||
{
|
||||
static int errorcount = 0;
|
||||
|
||||
if (++errorcount < 5) {
|
||||
message_1s (1, "Could not parse:", p_copy);
|
||||
} else if (errorcount == 5)
|
||||
message_1s (1, "More parsing errors will be ignored.", "(sorry)" );
|
||||
}
|
||||
|
||||
if (p_copy != p) /* Carefull! */
|
||||
g_free (p_copy);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue