projects
/
profile
/
ivi
/
rygel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49d1471
)
core: Use proper error for wrong browse method
author
Jens Georg
<mail@jensge.org>
Thu, 20 Oct 2011 09:13:17 +0000
(11:13 +0200)
committer
Jens Georg
<mail@jensge.org>
Thu, 20 Oct 2011 09:13:17 +0000
(11:13 +0200)
src/rygel/rygel-browse.vala
patch
|
blob
|
history
diff --git
a/src/rygel/rygel-browse.vala
b/src/rygel/rygel-browse.vala
index
2682cbf
..
1e23eeb
100644
(file)
--- a/
src/rygel/rygel-browse.vala
+++ b/
src/rygel/rygel-browse.vala
@@
-90,8
+90,8
@@
internal class Rygel.Browse: Rygel.MediaQueryAction {
(MediaObject media_object)
throws Error {
if (!(media_object is MediaContainer)) {
- throw new ContentDirectoryError.
NO_SUCH_OBJECT
- (_("
No such object
"));
+ throw new ContentDirectoryError.
INVALID_ARGS
+ (_("
Cannot browse children on item
"));
}
var container = (MediaContainer) media_object;