print shell command only in case of error

It's not needed all the time, maybe it's more useful only when there are errors