Fix error print statement in examples