Bar student loses out on resits by just one mark