Mark Slagell <ms / iastate.edu> writes:

>   (print error_message; exit 1)  if error_flag
> 


Or, if this is something that happens more than once, perhaps express
the intent:

  def fatal_error(msg)
    puts msg
    exit 1
  end


 ....

   fatal_error(error_message)  if error_flag

 ....

   fatal_error(another_message) if another_flag