Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2007-11-04 14:05:15 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2007-11-04 14:05:15 (GMT)
commit99999bdb7ed22852952cc546e5b900496bdd0635 (patch)
tree9242684c140d524bf56b778129594f746d385c26 /lib
parent2907b10dbb715a0e053fc281fdbbcca6fd94570b (diff)
Add some more info to an error message.
Diffstat (limited to 'lib')
-rw-r--r--lib/sugar/datastore/datastore.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sugar/datastore/datastore.py b/lib/sugar/datastore/datastore.py
index 6b419a4..07e7635 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