Updated error in sample code.