Skip to content

Commit 377017c

Browse files
committed
chore: better error messaging at app start crash
1 parent 1f22ae1 commit 377017c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/desktop-mac-test-pull.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ concurrency:
99

1010
jobs:
1111
test-desktop-mac:
12-
runs-on: macos-latest
12+
runs-on: macos-12
1313
timeout-minutes: 90
1414
steps:
1515
- uses: actions/checkout@v3

src/phoenix/init_vfs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,10 @@ const _createAppDirs = async function () {
276276

277277

278278
const CORE_LIB_GUARD_INTERVAL = 5000;
279-
const _FS_ERROR_MESSAGE = 'Oops. Phoenix could not be started due to missing file system library.';
279+
const _FS_ERROR_MESSAGE = (Phoenix.isNativeApp && Phoenix.platform === "mac") ?
280+
'Oops. Could not start due to missing file system library.\n\nPhoenix Code requires `macOS 12 Monterey` or higher' :
281+
'Oops. Could not start due to missing file system library.' +
282+
'\n\nPlease use a modern browser (released within the last 4 years).';
280283
export default function initVFS() {
281284
if(!window.fs || !window.path || !window.Phoenix){
282285
window.alert(_FS_ERROR_MESSAGE);

0 commit comments

Comments
 (0)