return error, prevent duplicate error emit