playwright/browser_patches/deprecated-webkit-mac-10.14/pw_run.sh
Andrey Lushnikov 15668f04a8
chore: make WebKit @ MacOS 10.14 error more prominent (#6943)
The new message is much more prominent in the logs:

```
aslushnikov:~/prog/playwright(make-deprecation-error-more-prominent)$ node a.js
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

browserType.launch: Protocol error (Playwright.enable): Browser closed.
==================== Browser output: ====================
<launching> /Users/aslushnikov/prog/playwright/browser_patches/deprecated-webkit-mac-10.14/pw_run.sh --inspector-pipe --headless --no-startup-window
<launched> pid=5120
[pid=5120][out] ****************************************************************
[pid=5120][out] ****************************************************************
[pid=5120][out]
[pid=5120][out] ERROR: MacOS version is too old!
[pid=5120][out]
[pid=5120][out] This version of Playwright does not support running
[pid=5120][out] WebKit on MacOS 10.14. Please either:
[pid=5120][out] - update your operating system to version 10.15 or higher
[pid=5120][out] - use Playwright v1.11 or older
[pid=5120][out]
[pid=5120][out] ****************************************************************
[pid=5120][out] ****************************************************************
[pid=5120] <process did exit: exitCode=1, signal=null>
[pid=5120] starting temporary directories cleanup
```
2021-06-07 14:23:06 -07:00

18 lines
530 B
Bash
Executable File

#!/bin/bash
cat << EndOfMessage
****************************************************************
****************************************************************
ERROR: MacOS version is too old!
This version of Playwright does not support running
WebKit on MacOS 10.14. Please either:
- update your operating system to version 10.15 or higher
- use Playwright v1.11 or older
****************************************************************
****************************************************************
EndOfMessage
exit 1;