Skip to content

Commit 5339e5d

Browse files
committed
bootstrap: Fix syntax error for Node older than 10
We don't actually support Node older than 10 for successfully bootstrapping an Atom build, but we should support older Node in the system requirements checker script so that we can print useful errors, like ones to tell the user their system's copy of Node is too old! (It was me that introduced this Node 10.0.0 or above-only syntax about a year ago... My mistake. It's as good a time as any to fix it!)
1 parent b3930b0 commit 5339e5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/lib/verify-machine-requirements.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function verifyPython() {
9494
env: process.env,
9595
stdio: ['ignore', 'pipe', 'ignore']
9696
});
97-
} catch {}
97+
} catch (e) {}
9898

9999
if (stdout) {
100100
if (stdout.indexOf('+') !== -1)

0 commit comments

Comments
 (0)