Use a special error code to skip error reporting.
BUG: 387634
No Linters Available |
No Unit Test Coverage |
Sorry for the late response, but we currently have no maintainer for the FTP code in KIO.
From quickly checking, the intention looks good, but if the ERR_* codes are part of an enum, maybe add the special value -1 with a name there, instead of hardcoding the -1 value? It might even fail with compilers that strictly treat enum's as a separate data type.
ERR_* is KIO-wide, and isn't technically an enum.
But the proper error code for no error is KJob::NoError (which is 0). Can you switch to that, and adjust the second comment, and kill the first comment altogether? (redundant with code and with 2nd comment)
Thanks! (and sorry for the delay, too)
Don't emit error signal before we tried all list commands.
Use a special error code to skip error reporting.