Create local collection to handle error messages
- Local collection is client-only and will not try to synchronize with the server
- The collection name of the errors for clients is set to null
- Errors are only relevant to the current session and not persistent
Add throwError function to client-side
- throwError function is used to add errors to our Errors collection
- Takes an error message as a parameter and inserts it into the Errors collection
- No need for allow or deny because these are not going into the Mongo database
Display errors in main layout
- Use spacebars to display error messages to clients on top of the page
- Also edited the spacing for the header to make it consistent with the rest of the code
- Since all collections are reactive, once a new error is added to the Errors collection, it will immediately display on the page
Create errors template
- Create two templates for errors: error and errors template
- Errors template will display errors by iterating through the Errors collection
- Error template is a button that allows users to dismiss the error message
- It will also display the error message
Add template helper for errors
- Template helper is a funciton that returns all error messages in the Error collection
- Variable errors is passed to the errors templates
Merge pull request #22 from alexanderdavidpan/Implement_Basic_Error_Reporting

Implement basic error reporting