You are ignoring the return value of error here.