From 99999bdb7ed22852952cc546e5b900496bdd0635 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Sun, 4 Nov 2007 15:05:15 +0100 Subject: [PATCH] Add some more info to an error message. --- lib/sugar/datastore/datastore.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sugar/datastore/datastore.py b/lib/sugar/datastore/datastore.py index 6b419a46..07e76351 100644 --- a/lib/sugar/datastore/datastore.py +++ b/lib/sugar/datastore/datastore.py @@ -167,7 +167,8 @@ class DSObject(object): activityfactory.create(bundle.get_bundle_id()) else: if not self.get_activities() and bundle_id is None: - logging.warning('No activity can open this object.') + logging.warning('No activity can open this object, %s.' % + self.metadata.get('mime_type', None)) return if bundle_id is None: bundle_id = self.get_activities()[0].bundle_id