README.md in 4me-sdk-2.0.3 vs README.md in 4me-sdk-2.0.4

- old
+ new

@@ -261,11 +261,14 @@ ``` begin response = Sdk4me::Client.new.import('\tmp\people.csv', 'people', true) puts response[:state] puts response[:results] - puts response[:message] + puts response[:logfile] + unless response.valid? + puts "Import completed with errors: #{response[:message]}" + end catch Sdk4me::UploadFailed => ex puts "Could not upload the people import file: #{ex.message}" catch Sdk4me::Exception => ex puts "Unable to monitor progress of the people import: #{ex.message}" end @@ -297,12 +300,17 @@ require 'open-uri' begin response = Sdk4me::Client.new.export(['people', 'people_contact_details'], nil, true) puts response[:state] - # write the export file to disk - File.open('/tmp/export.zip', 'wb') { |f| f.write(open(response[:url]).read) } + if response.valid? + # write the export file to disk + File.open('/tmp/export.zip', 'wb') { |f| f.write(open(response[:url]).read) } + else + puts "Export failed with errors: #{response[:message]}" + puts response[:logfile] + end catch Sdk4me::UploadFailed => ex puts "Could not queue the people export: #{ex.message}" catch Sdk4me::Exception => ex puts "Unable to monitor progress of the people export: #{ex.message}" end @@ -351,6 +359,6 @@ The changelog is available [here](CHANGELOG.md). ## Copyright -Copyright (c) 2020 4me, Inc. See [LICENSE](LICENSE) for further details. +Copyright (c) 2022 4me, Inc. See [LICENSE](LICENSE) for further details.