Add missing error check.