npm-browser
npm-browser copied to clipboard
Better error when you're out of storage space
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.
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?