added error reporting to get_objects
Merge pull request #244 from paczian/master

added error reporting to get_objects