lib/semantic_logger/appender/syslog.rb in semantic_logger-4.6.0.beta1 vs lib/semantic_logger/appender/syslog.rb in semantic_logger-4.6.0
- old
+ new
@@ -143,18 +143,18 @@
# The syslog_protocol gem is required when logging over TCP or UDP.
if %i[tcp udp].include?(@protocol)
begin
require 'syslog_protocol'
rescue LoadError
- raise 'Missing gem: syslog_protocol. This gem is required when logging over TCP or UDP. To fix this error: gem install syslog_protocol'
+ raise LoadError.new('Missing gem: syslog_protocol. This gem is required when logging over TCP or UDP. To fix this error: gem install syslog_protocol')
end
# The net_tcp_client gem is required when logging over TCP.
if protocol == :tcp
begin
require 'net/tcp_client'
rescue LoadError
- raise 'Missing gem: net_tcp_client. This gem is required when logging over TCP. To fix this error: gem install net_tcp_client'
+ raise LoadError.new('Missing gem: net_tcp_client. This gem is required when logging over TCP. To fix this error: gem install net_tcp_client')
end
end
end
super(**args, &block)