Report errors in command even if no error in log

try:
```bash
ls something_that_isnt_in_the_dir_will_return_an_error
echo $?
```

It stores the return code of running `$command` which will be not 0 if something went wrong.