Autoproc: improvement of error reporting