Author: johnh
Date: Thu Mar 5 23:31:42 2009
New Revision: 750682
URL: http://svn.apache.org/viewvc?rev=750682&view=rev
Log:
Don't throw an exception when no relay is assigned for IFPC. Instead, simply
emit a warning to console. This allows the rest of gadgets functionality to
continue rather than ceasing on the exception.
Modified:
incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
Modified:
incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js?rev=750682&r1=750681&r2=750682&view=diff
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
(original)
+++ incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
Thu Mar 5 23:31:42 2009
@@ -306,7 +306,9 @@
// Create the Default RPC handler.
services[DEFAULT_NAME] = function() {
- throw new Error('Unknown RPC service: ' + this.s);
+ if (console && console.log) {
+ console.log('Unknown RPC service: ' + this.s);
+ }
};
// Create a Special RPC handler for callbacks.