Added print of error in case of parsing error.