[Reporting] Network Policy: Do not throw from the intercept handler (#75105)

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Tim Sullivan 2020-08-18 13:26:52 -07:00 committed by GitHub
parent 47d41437d9
commit 982402145c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,7 +303,7 @@ export class HeadlessChromiumDriver {
if (!allowed || !this.allowRequest(interceptedUrl)) {
this.page.browser().close();
logger.error(getDisallowedOutgoingUrlError(interceptedUrl));
throw getDisallowedOutgoingUrlError(interceptedUrl);
return;
}
});