errors.js 229 B

12345678910111213141516
  1. /**
  2. * @file
  3. *
  4. *
  5. * User: marand
  6. * Date: 03/09/15
  7. * Time: 16:46
  8. */
  9. // Local client-only collection.
  10. Errors = new Mongo.Collection(null);
  11. // Global
  12. throwError = function(message) {
  13. Errors.insert({ message: message });
  14. };