Always initialize the error value here to not loop indefinitely on same error