Update standard output for successful message and exception message.