pouchdb / npm-browser

npm in your browser. Because why not. (UNMAINTAINED)
http://www.npm-browser.com
34 stars 7 forks source link

Better error when you're out of storage space #10

Open nolanlawson opened 9 years ago

nolanlawson commented 9 years ago

On Chrome for Android it looks like this:

{"message":"there was not enough remaining storage space, or the storage quota was reached and the user declined to allow more space","name":"SQLError"}

Currently the app just says "you've gone offline," which is not helpful.

nolanlawson commented 9 years ago

In Firefox (developer edition), the error message is way less obvious:

DOMException [InvalidStateError: "A mutation operation was attempted on a database that did not allow mutations."
code: 11
nsresult: 0x80660006
location: http://www.npm-browser.com/scripts/deps/pouchdb.js:2597]

Also apparently there's no more "hey, wanna authorize this app to use more space" as of Firefox 35.0a2?