aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/exceptionHandler.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng/exceptionHandler.js')
-rw-r--r--src/ng/exceptionHandler.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ng/exceptionHandler.js b/src/ng/exceptionHandler.js
index 13f775ef..c2c77f64 100644
--- a/src/ng/exceptionHandler.js
+++ b/src/ng/exceptionHandler.js
@@ -15,14 +15,14 @@
*
* ## Example:
*
- * <pre>
+ * ```js
* angular.module('exceptionOverride', []).factory('$exceptionHandler', function () {
* return function (exception, cause) {
* exception.message += ' (caused by "' + cause + '")';
* throw exception;
* };
* });
- * </pre>
+ * ```
*
* This example will override the normal action of `$exceptionHandler`, to make angular
* exceptions fail hard when they happen, instead of just logging to the console.