error status logging

Unused block argument - `stdout`. If it's necessary, use `_` or `_stdout` as an argument name to indicate that it won't be used.