def post_error_message(self, message, duration=None, pause=True):
if not duration:<EOL><INDENT>if not self.message_duration:<EOL><INDENT>duration = settings.DEFAULT_MESSAGE_DURATION<EOL><DEDENT>else:<EOL><INDENT>duration = self.message_duration<EOL><DEDENT><DEDENT>js_utils.post_message(<EOL>self.driver, message, duration, style="<STR_LIT:error>")<EOL>if pause:<EOL><INDENT>duration = float(duration) + <NUM_LIT><EOL>time.sleep(float(duration))<EOL><DEDENT>
Post an error message on the screen with Messenger.
            Arguments:
                message: The error message to display.
                duration: The time until the message vanishes. (Default: 2.55s)
                pause: If True, the program waits until the message completes.