Print error message in case exec failed.