If the system detects an error, it displays a message either in the status bar or in a dialog box, depending on the type of error. The message should state the problem and offer an solution to enable the user to proceed without outside assistance.
Illustration

The most important guidelines for writing messages
Guidelines Examples of Good and Bad Error Messages Technical Notes Cross-References