If the database is unable to execute a command it returns an error message.
See also:
Messages documentation (explanation of the most important information and error messages, sorted by message number)
Concepts of the Database System, Troubleshooting