updated error message for missing contents