Define error method

This commit is contained in:
niten 2023-01-30 12:10:56 -08:00
parent fc83373d6b
commit 1fe9c1a4e6
1 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,11 @@ raise 'at least one of -4 or -6 required' unless options[:ipv4] || options[:ipv6
password = options[:pw_file]
raise "file does not exist or is not readable: #{password}" unless File::readable?(password)
def error(msg)
puts msg
raise msg
end
# XMPP client for Fudo Backplane
class XMPPClient
def initialize(domain, hostname, server, password)