Improved error messages on faulty definition files. Now most errors are raised instead of logged.