Add a parameter to fail immediately on errors