Skip to content

Commit 3a37aa2

Browse files
committed
Clarify comment on onErrorCaptured
1 parent 843a555 commit 3a37aa2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

frontend/utils/silence.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ function handleRejection(event: PromiseRejectionEvent) {
4242
* should only be used once, in the app component.
4343
*/
4444
export function useSilencedErrorHandlers() {
45-
// Prevent silenced errors originating from Vue contexts from propagating
46-
// further, and prevent other Vue error handlers and dev warnings.
45+
// Prevent silenced errors from running other Vue error handlers and logging
46+
// dev warnings.
47+
//
48+
// (This also stops silenced errors thrown in Vue contexts from propagating
49+
// further to the below event listeners, but we don't care about that since
50+
// errors can come from other contexts.)
4751
onErrorCaptured((error) => {
4852
if (isSilenced(error)) {
4953
return false;

0 commit comments

Comments
 (0)