Added more informative error messages to package parsers