Skip to content

Commit 279523b

Browse files
authored
minor REAME updates
1 parent 2ac3226 commit 279523b

1 file changed

Lines changed: 2 additions & 18 deletions

File tree

README.md

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,23 +80,7 @@ errorHandler.start({
8080

8181
Unhandled exception will now automatically be reported to Stackdriver Error Reporting.
8282

83-
You can change your code to report errors:
84-
85-
When catching an exception:
86-
87-
```JS
88-
try {
89-
doSomethingRisky();
90-
} catch (e) {
91-
errorHandler.report(e);
92-
}
93-
```
94-
95-
or anytime:
96-
97-
```JS
98-
errorHandler.report('Something broke!');
99-
```
83+
You can also change your application code to report errors: `try { ... } catch(e) { errorHandler.report(e); }` or simply `errorHandler.report('Something broke!');`.
10084

10185
### Source maps
10286

@@ -139,7 +123,7 @@ angular.module('yourApp', [])
139123

140124
Uncaught exception in angular expressions will be reported to Stackdriver Error Reporting using this service.
141125

142-
If you wish, you can manually delegate exceptions, e.g. `try { ... } catch(e) { $exceptionHandler(e); }` or simply `$exceptionHandler(e);`.
126+
If you wish, you can manually delegate exceptions, e.g. `try { ... } catch(e) { $exceptionHandler(e); }` or simply `$exceptionHandler('Something broke!');`.
143127

144128

145129

0 commit comments

Comments
 (0)