Project

General

Profile

« Previous | Next » 

Revision 824a3af6

Added by Marc Dequènes almost 12 years ago

[fix] use sprintf-like operator and count upon stringification instead of bare concatenation

View differences:

bin/postman
# it also tests search parameters (provided to setup_connection)
ActiveLdap::Base.find(:first)
rescue
logger.fatal "LDAP failure: " + $!
logger.fatal "LDAP failure: %s" % $!
exit 1
end
......
rescue CyberError => e
raise
rescue
logger.error "Mail processing crashed unexpectedly: " + $!
logger.error "Crash class: " + $!.class.to_s
logger.error "Crash trace: " + $!.backtrace.join("\n")
logger.error "Mail processing crashed unexpectedly: %s" % $!
logger.error "Crash class: %s" % $!.class.to_s
logger.error "Crash trace: %s" % $!.backtrace.join("\n")
true
end
end
rescue
logger.error "IMAP processing crashed unexpectedly: " + $!
logger.error "Crash class: " + $!.class.to_s
logger.error "Crash trace: " + $!.backtrace.join("\n")
logger.error "IMAP processing crashed unexpectedly: %s" % $!
logger.error "Crash class: %s" % $!.class.to_s
logger.error "Crash trace: %s" % $!.backtrace.join("\n")
end
logger.info "Bot terminating"
end

Also available in: Unified diff