Skip to content

Commit 8b0944e

Browse files
committed
Keep flailing
1 parent 6964bbd commit 8b0944e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/main/Drupal.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ export class Drupal extends EventEmitter
118118
} else {
119119
output += `${line}\n`;
120120
}
121-
}).catch(() => {
122-
throw new Error(output);
121+
})
122+
.catch(() => {
123+
throw Error(output);
123124
});
124125
}
125126
await this.prepareSettings();

tests/main.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ test('clean up on failed install', async ({}, testInfo) => {
7070
const window = await app.firstWindow();
7171
// Confirm that STDERR output (i.e., progress messages) is streamed to the window.
7272
await expect(window.getByText('Doing step: ')).toBeVisible();
73+
await expect(window.getByText('An error occurred while starting Drupal CMS. It has been automatically reported to the developers.')).toBeVisible();
74+
await window.waitForTimeout(10_000);
7375
await expect(window.getByText('An imaginary error occurred!')).toBeVisible();
7476
// We expect access() to throw a "no such file or directory" error, because the
7577
// directory has been deleted.

0 commit comments

Comments
 (0)