add some error logs to the trash bin app

added some error messages to the code