Added error message to code

Added empty object container error message to code