LearningRegistry/LearningRegistry — pull request #195 by armontoya (2012-02-27 19:38:51+00:00)
Title: Improve error handling on publish

This pull request provides more descriptive error codes for publish, as well as fixes a few uncaught errors when validating data.

Specifically:

- Changed error message from 'internal error' to 'missing or invalid doc version' when user does not supply/supplies invalid doc_version
- Reject arrays containing non-string values, provided error message
- Implemented specific error codes based on error-code proposal for malformed or missing JSON doc for publish