I need to run external command in vim and see the STDOUT only if it fails.

For example when I hit F9 i want to run `do.sh` and be informed only about the errors. Now I use double `<cr><cr>` to close the defualt output window but this will not show me any errors:

```
nmap <F9> :!./script.sh<cr><cr>

```