Revision 1aaf04e4 src/vmm_mad/remotes/vcenter/vcenter_driver.rb

View differences:

src/vmm_mad/remotes/vcenter/vcenter_driver.rb
63 63
# Helper functions                                                             #
64 64
# ---------------------------------------------------------------------------- #
65 65

  
66
def error_message(message)
67
    error_str = "ERROR MESSAGE --8<------\n"
68
    error_str << message
69
    error_str << "\nERROR MESSAGE ------>8--"
70

  
71
    return error_str
72
end
73

  
66 74
def check_valid(parameter, label)
67 75
    if parameter.nil? || parameter.empty?
68
        STDERR.puts "The parameter '#{label}' is required for this action."
76
        STDERR.puts error_message("The parameter '#{label}' is required for this action.")
69 77
        exit -1
70 78
    end
71 79
end

Also available in: Unified diff