Skip to content
Browse files

better more detailed error mesages for google docs and a readme sort of

  • Loading branch information...
1 parent ffda0b9 commit 8bb9590abe320421b53db906712a08d79d3bd1b2 @antimatter15 committed Mar 11, 2011
Showing with 19 additions and 2 deletions.
  1. +13 −0 README
  2. +6 −2 hosts/google/docs.js
@@ -1 +1,14 @@
Cloud Save
+It's actually really amazing how many people now use Cloud Save. In fact, when I
+first built this, I had no idea how anyone would possibly find this extension of
+any practical use whatsoever. I still only have a vague idea as to how it could
+be used, so this probably implies that I'm not the best maintainer of this project
+but at least it's popular and rather awesome. Personally, I find drag2up much more
+original, innovative and awesome.
+Cloud Save is still pretty cool though. And it's not a terrible name, actually. Its
+probably the one project of mine which actually has a fairly decent name.
+Right now, I'm going to try doing development of cloud save on the cloud via the
+cloud9 IDE on a Cr-48. It's going pretty well so far and it's really awesome.
8 hosts/google/docs.js
@@ -5,7 +5,7 @@ Hosts.gdocs = function uploadGDocs(req, callback){
var bin =;
var arr = new Uint8Array(bin.length);
for(var i = 0, l = bin.length; i < l; i++){
- arr[i] = bin.charCodeAt(i)
+ arr[i] = bin.charCodeAt(i);
@@ -17,7 +17,11 @@ Hosts.gdocs = function uploadGDocs(req, callback){
console.log(resp, xhr);
- callback('error:'+resp.replace(/<.*?>/g,' ').replace(/ +/g,' '))
+ if(resp.indexOf("ServiceForbiddenException") != -1){
+ callback('error: Google Docs API only supports Document, Presentation and Spreadsheet files.');
+ }else{
+ callback('error:'+resp.replace(/<.*?>/g,' ').replace(/ +/g,' '));
+ }

0 comments on commit 8bb9590

Please sign in to comment.
Something went wrong with that request. Please try again.