Merge pull request #3140 from ctrlaltdavid/script_error_reporting

Fix script errors not being reported