Vulcan/common/errors.js
2012-11-19 12:03:06 +09:00

5 lines
215 B
JavaScript

throwError = function(message, type){
type = (typeof type === 'undefined') ? 'error': type;
// Store errors in the 'Errors' local collection
Errors.insert({message:message, type:type, seen: false, show:true});
}