could someone give me the routine for getting the last error.