Add missing error emit