adobe/brackets — pull request #2408 by gruehle (2012-12-20 00:00:56+00:00)
Title: Consistent use of exceptions/errors/asserts/logs

Issue #568

This pull request implements our [conventions for error handling](https://github.com/adobe/brackets/wiki/Brackets-Coding-Conventions#wiki-error_handling) in all core Brackets code.

There are 3 primary commits:
3add1c8 - Scrub all thrown exceptions. Most of these are converted to `console.error()` since they are non-fatal errors.
e7e2bff - Scrub `console.assert()` calls. One was changed to `console.error()`.
0fe5d69 - Scrub `console.log()` calls. Some were changed to `console.error()`; some were commented out.

All calls to `console.error()` were scrubbed and no changes were deemed necessary. Unit tests have been updated to check for expected functionality in failure cases.