rygel r525 - trunk/src/rygel
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r525 - trunk/src/rygel
- Date: Thu, 29 Jan 2009 00:01:59 +0000 (UTC)
Author: zeeshanak
Date: Thu Jan 29 00:01:59 2009
New Revision: 525
URL: http://svn.gnome.org/viewvc/rygel?rev=525&view=rev
Log:
Only ContentDirectoryError uses the HTTP codes.
Modified:
trunk/src/rygel/rygel-content-directory.vala
Modified: trunk/src/rygel/rygel-content-directory.vala
==============================================================================
--- trunk/src/rygel/rygel-content-directory.vala (original)
+++ trunk/src/rygel/rygel-content-directory.vala Thu Jan 29 00:01:59 2009
@@ -153,8 +153,16 @@
// Conclude the successful Browse action
conclude_browse (action, didl, args);
- } catch (Error error) {
+ } catch (ContentDirectoryError error) {
+ warning ("Failed to browse '%s': %s\n",
+ args.object_id,
+ error.message);
action.return_error (error.code, error.message);
+ } catch (Error error) {
+ warning ("Failed to browse '%s': %s\n",
+ args.object_id,
+ error.message);
+ action.return_error (701, error.message);
}
/* Reset the parser state */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]