Fix typo in exception throw in andThrowExceptions

* Also fix indentation