+ end
+ if _is_json and _is_readable_file
+ abort "Argument '#{resource_body}' specified for option '--#{resource_schema.to_sym}' is both valid JSON and a readable file, cannot continue (suggest renaming the file '#{resource_body}')."
+ elsif !_is_json and !_is_readable_file
+ if File.exists? resource_body
+ # specified file exists but is not readable
+ abort "File '#{resource_body}' specified for option '--#{resource_schema.to_sym}' exists but is not readable."
+ else
+ # specified file does not exist
+ abort "File '#{resource_body}' specified for option '--#{resource_schema.to_sym}' does not exist."