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
My local df command emits an error df: /run/user/1000/doc: Operation not permitted and returns an exit code of 1. (I'm not sure why.) It still produces useful output on stdout.
Since getDiskStats in Ridley uses readProcess, it will pass through stderr to the parent process, and will throw an exception when df returns a non-zero exit code. Instead, using readProcessWithExitCode would allow the exit code to be logged but not treated as a complete failure. Moreover the stderr output could be logged normally rather than being passed through to the parent process.
The text was updated successfully, but these errors were encountered:
My local
df
command emits an errordf: /run/user/1000/doc: Operation not permitted
and returns an exit code of 1. (I'm not sure why.) It still produces useful output on stdout.Since
getDiskStats
in Ridley usesreadProcess
, it will pass through stderr to the parent process, and will throw an exception whendf
returns a non-zero exit code. Instead, usingreadProcessWithExitCode
would allow the exit code to be logged but not treated as a complete failure. Moreover the stderr output could be logged normally rather than being passed through to the parent process.The text was updated successfully, but these errors were encountered: