From Quake Wiki
void objerror (string text)
Prints an error message related to object self.
An example of objerror being used is in doors.qc, where an objerror is called if it detects cross-linked doors. If it didn't call objerror, the function would cycle for infinity.
When called the game will crash.