Printing out exceptions so that CLI users can see the error message and location details