Fix missing error passing