implemented isam_error function
implemented isam_error function