# Get the last message

**URL:** <https://www.ruby-forum.com/t/get-the-last-message/91122>\
**Category:** Ruby\
**Created:** [April 4, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/get-the-last-message/91122 "2007-04-04T22:22:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darth\_ivan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/22d042/32.png) [@darth\_ivan](https://www.ruby-forum.com/u/darth_ivan)\
**Post date:** [April 4, 2007, 10:22pm UTC](https://www.ruby-forum.com/t/get-the-last-message/91122/1 "2007-04-04T22:22:49Z")

</div>

I am making a script to compile a code for me. But if compile isn’t  
sucessfull, I want to put the message erro in a variable and send it to  
me.

How can I get the message erro?

Thanks
