Add error example to coproducts example