Minor Fix

Fixed an error in the exception handler, as well as added a development
error display for debugging errors.