Show an error message if the exam does not exist.

Closes issue #42.