Vulcan/packages
Charlie DeTar ea7efc3550 Replace "throwError" with "flashMessage" and type
Currently, ``throwError`` is used for all manner of messages, including
errors, "success" messages, and "info" messages.  This makes appropriate
styling of the error message difficult.  In addition, the name
``throwError`` seems to create confusion, implying that an error will
actually be thrown (e.g. stopping execution when a user isn't logged in
[0][1]), when in fact it just displays a message.

Replace ``throwError`` with ``flashMessage``, and reliably include a
message "type" (e.g. "error", "success", "info") every time.  rename
``lib/errors.js`` to ``lib/messages.js`` to more accurately reflect its
function.

This commit doesn't rename the message collection (``Errors``), nor the
template responsible for rendering the messages (``error_item.html``) --
that should probably still be done, but has higher likelihood of
trouble for existing alternate themes and installations.

[0] 6ccf7d7d47/client/views/users/user_edit.js (L43)
[1] 083a4c4dc4/client/views/users/user_email.js (L13)
2014-11-05 13:12:09 -07:00
..
npm-container Upgrading to 0.9.3.1 2014-10-04 12:51:44 +09:00
telescope-api Upgrading to 0.9.3.1 2014-10-04 12:51:44 +09:00
telescope-base Fixing #457 2014-10-06 10:27:28 +09:00
telescope-daily updating packages 2014-10-05 17:23:05 +09:00
telescope-email Upgrading to 0.9.3.1 2014-10-04 12:51:44 +09:00
telescope-i18n Upgrading to 0.9.3.1 2014-10-04 12:51:44 +09:00
telescope-kadira Merge branch 'herald-integration' of github.com:Kestanous/Telescope into Kestanous-herald-integration 2014-10-07 10:34:23 +09:00
telescope-lib Upgrading to 0.9.3.1 2014-10-04 12:51:44 +09:00
telescope-module-embedly Upgrading to 0.9.3.1 2014-10-04 12:51:44 +09:00
telescope-module-share Upgrading to 0.9.3.1 2014-10-04 12:51:44 +09:00
telescope-newsletter Replace "throwError" with "flashMessage" and type 2014-11-05 13:12:09 -07:00
telescope-notifications re-enable emailNotifications setting 2014-10-07 13:45:48 +09:00
telescope-rss Upgrading to 0.9.3.1 2014-10-04 12:51:44 +09:00
telescope-search updating packages 2014-10-05 17:23:05 +09:00
telescope-tags Replace "throwError" with "flashMessage" and type 2014-11-05 13:12:09 -07:00
telescope-theme-base Upgrading to 0.9.3.1 2014-10-04 12:51:44 +09:00
telescope-theme-hubble Upgrading to 0.9.3.1 2014-10-04 12:51:44 +09:00
telescope-update-prompt updating packages 2014-10-05 17:23:05 +09:00
.gitignore add embedly and newsletter packages 2014-08-29 10:37:35 +09:00