zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #03860
[Branch ~zeitgeist/zeitgeist/bluebird] Rev 206: DSR: Fix get_data_source_from_id
------------------------------------------------------------
revno: 206
committer: Michal Hruby <michal.mhr@xxxxxxxxx>
branch nick: bluebird
timestamp: Wed 2011-08-31 11:44:40 +0200
message:
DSR: Fix get_data_source_from_id
modified:
extensions/ds-registry.vala
--
lp:~zeitgeist/zeitgeist/bluebird
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird
Your team Zeitgeist Framework Team is subscribed to branch lp:~zeitgeist/zeitgeist/bluebird.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'extensions/ds-registry.vala'
--- extensions/ds-registry.vala 2011-08-31 09:31:29 +0000
+++ extensions/ds-registry.vala 2011-08-31 09:44:40 +0000
@@ -204,14 +204,16 @@
}
}
- public Variant get_data_source_from_id (string unique_id)
+ public Variant get_data_source_from_id (string unique_id) throws Error
{
unowned DataSource? ds = sources.lookup (unique_id);
if (ds != null)
{
- return ds.to_variant();
+ return ds.to_variant ();
}
- throw new EngineError.INVALID_KEY("Datasource with Unique ID: %s not found");
+
+ throw new EngineError.INVALID_KEY (
+ "Datasource with unique ID: %s not found".printf (unique_id));
}
}