Skip to content

Commit 38b558c

Browse files
fix: correct spelling in CLI error message (#849)
Co-authored-by: Jake Champion <[email protected]>
1 parent a40389a commit 38b558c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

integration-tests/cli/non-existant-engine-wasm-path.test.js renamed to integration-tests/cli/non-existent-engine-wasm-path.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ test('should return non-zero exit code', async function (t) {
1414
const { code, stdout, stderr } = await execute(process.execPath, `${cli} --engine-wasm ${path}/engine.wasm`);
1515

1616
t.alike(stdout, []);
17-
t.alike(stderr, ['Error: The `wasmEngine` path points to a non-existant file: {{base}}/engine.wasm']);
17+
t.alike(stderr, ['Error: The `wasmEngine` path points to a non-existent file: {{base}}/engine.wasm']);
1818
t.is(code, 1);
1919
});

integration-tests/cli/non-existant-input-path.test.js renamed to integration-tests/cli/non-existent-input-path.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ test('should return non-zero exit code', async function (t) {
1313
const { code, stdout, stderr } = await execute(process.execPath, cli);
1414

1515
t.alike(stdout, []);
16-
t.alike(stderr, ['Error: The `input` path points to a non-existant file: {{base}}/bin/index.js']);
16+
t.alike(stderr, ['Error: The `input` path points to a non-existent file: {{base}}/bin/index.js']);
1717
t.is(code, 1);
1818
});

src/compileApplicationToWasm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function compileApplicationToWasm(
3333
}
3434
} catch (error) {
3535
console.error(
36-
`Error: The \`input\` path points to a non-existant file: ${input}`
36+
`Error: The \`input\` path points to a non-existent file: ${input}`
3737
);
3838
process.exit(1);
3939
}
@@ -57,7 +57,7 @@ export async function compileApplicationToWasm(
5757
}
5858
} catch (error) {
5959
console.error(
60-
`Error: The \`wasmEngine\` path points to a non-existant file: ${wasmEngine}`
60+
`Error: The \`wasmEngine\` path points to a non-existent file: ${wasmEngine}`
6161
);
6262
process.exit(1);
6363
}

0 commit comments

Comments
 (0)