Project

General

Profile

« Previous | Next » 

Revision 6aec78f6

Added by Marc Dequènes over 13 years ago

  • ID 6aec78f67feb6f283e263b88ba8064dc96872d51

[fix] return error properly when attachment is missing, avoiding a crash (code is still not properly split in this branch)

View differences:

lib/cyborghood/command_runner.rb
end
srv_dns = Services::DNS.new(zone)
return if cmdline.empty?
if cmdline.empty?
result.message = _("No attachment number provided")
return result
end
zone_data = cmdline.shift
unless zone_data.content_type == "text/plain"

Also available in: Unified diff