Vulcan/common/errors.js

6 lines
215 B
JavaScript
Raw Normal View History

2012-10-08 10:44:13 +09:00
throwError = function(message, type){
type = (typeof type === 'undefined') ? 'error': type;
// Store errors in the 'Errors' local collection
2012-10-08 10:44:13 +09:00
Errors.insert({message:message, type:type, seen: false, show:true});
}