Apply suggestions from code review

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Ben Lambert <ben@blam.sh>
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
Ben Lambert
2024-01-30 11:34:28 +01:00
committed by blam
parent f6792c6758
commit 26ca6a4342
@@ -132,7 +132,7 @@ export class SecureTemplater {
const nodeVersion = getMajorNodeVersion();
if (nodeVersion >= 20 && !isNoNodeSnapshotOptionProvided()) {
throw new Error(
`When using node v20+ Scaffolder requires that node be started with the --no-node-snapshot option.
`When using Node.js version 20 or newer, the scaffolder backend plugin requires that it be started with the --no-node-snapshot option.
Please make sure that you have NODE_OPTIONS=--no-node-snapshot in your environment.`,
);
}