simplajs / simpla

Open, modular, and serverless content management for a modern web
https://www.simplajs.org
MIT License
527 stars 36 forks source link

Throw useful error when invalid project key #15

Closed madeleineostoja closed 7 years ago

madeleineostoja commented 8 years ago

If Simpla is initialised with an empty project key (ie: Simpla('')) it fetches an invalid URL and hence crashes. It should throw a useful error instead.

madeleineostoja commented 8 years ago

Editing with an invalid project key will be fixed by #30, but getting content with a malformed project key is still cryptic for the user.