Autoproc: Improvements of error reporting