correct error message in case the subprocess exits with return code != 0