You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Exit code unchanged when an error is encountered #27
We handle errors caused by reading files in process_dir(), which conforms to the processing logic of GNU find. But internal errors that would cause process_dir() to be handled cannot be passed to the outer layer. Therefore adding a boolean error flag is used to pass a signal to the upper function to change the exit code when process_dir() has any error.
It might solve the problem, even if it's not very elegant :(
Activity
hanbings commentedon Apr 6, 2024
We handle errors caused by reading files in
process_dir(), which conforms to the processing logic of GNU find. But internal errors that would causeprocess_dir()to be handled cannot be passed to the outer layer. Therefore adding a boolean error flag is used to pass a signal to the upper function to change the exit code whenprocess_dir()has any error.It might solve the problem, even if it's not very elegant :(