4
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/arkrb/error_parsing.rb', line 4
def sanitize!(command, error_output, command_opts = nil)
ark_exe_not_found = potential_errors[:ark_exe_not_found]
raise ark_exe_not_found[:class], ark_exe_not_found[:message] if error_output =~ /#{ark_exe_not_found[:cause]}/im
server_offline = potential_errors[:server_offline]
raise server_offline[:class], server_offline[:message] if error_output =~ /#{server_offline[:cause]}/im
case command
when :install
install_command(error_output)
else
raise_unknown_error(command, error_output, command_opts)
end
end
|