there is duplication of message and unnecessary code. you can write it this way:
```ruby
result << "Standard output:"
result << e.stdout.empty? ? " (none)\n" : "\n#{e.stdout}\n"
end
and same for error