Add check for detailed exceptions

closes #391
Report file for detailed exception warning

especially since JSON report requires file name
Merge pull request #396 from presidentbeef/info_disclosure_in_errors

Add check for detailed exceptions