Skip to content

Commit

Permalink
Catch another layer fetch error message
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Feb 28, 2024
1 parent b4dc431 commit 413e0a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/puppeteer/e2e/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ export function listenToConsole(page: Page, index: number) {

if (messageType === 'ERR') {
console.log(message.args(), message.stackTrace())
console.log(JSON.stringify(message))
if (message.text().includes('/sse')) {
// If the SSE connection fails, the browser will restart it, it is not an application error
return
}

if (message.text().includes('/wfs')) {
// If the SSE connection fails, the browser will restart it, it is not an application error
if (message.text().includes('/wfs') || message.text().includes('areas')) {
// Do not throw an error when the app could not load a layer
return
}

Expand Down

0 comments on commit 413e0a5

Please sign in to comment.