You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by do...@apache.org on 2008/02/22 03:11:16 UTC
svn commit: r630068 -
/incubator/shindig/trunk/features/opensocial-samplecontainer/samplecontainer.js
Author: doll
Date: Thu Feb 21 18:11:14 2008
New Revision: 630068
URL: http://svn.apache.org/viewvc?rev=630068&view=rev
Log:
Return badeRequest error code in the sample container when an invalid id spec is passed in.
Modified:
incubator/shindig/trunk/features/opensocial-samplecontainer/samplecontainer.js
Modified: incubator/shindig/trunk/features/opensocial-samplecontainer/samplecontainer.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-samplecontainer/samplecontainer.js?rev=630068&r1=630067&r2=630068&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-samplecontainer/samplecontainer.js (original)
+++ incubator/shindig/trunk/features/opensocial-samplecontainer/samplecontainer.js Thu Feb 21 18:11:14 2008
@@ -241,6 +241,9 @@
}
if (person != null) {
persons.push(person);
+ } else {
+ errorCode = opensocial.ResponseItem.Error.BAD_REQUEST;
+ errorMessage = "The idSpec parameter " + idSpec[i] + " is invalid.";
}
}
}