In PhoSegObject class, fixed the way the error messages are added to self.error_msg .