Skip to content

Commit 867bf8c

Browse files
committed
lib: reword warning for --localstorage-file to fix no-regex-spaces lint
1 parent 35f2f3a commit 867bf8c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/internal/webstorage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ObjectDefineProperties(module.exports, {
2323
const location = getOptionValue('--localstorage-file');
2424

2525
if (location === '') {
26-
process.emitWarning(`${location} is an invalid localStorage location`);
26+
process.emitWarning('`--localstorage-file` was provided without a valid path');
2727

2828
return undefined;
2929
}

test/parallel/test-webstorage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ test('localStorage emits a warning without --localstorage-file ', async () => {
4646
]);
4747
assert.strictEqual(cp.code, 0);
4848
assert.strictEqual(cp.signal, null);
49-
assert.match(cp.stderr, /Warning: is an invalid localStorage location/);
49+
assert.match(cp.stderr, /Warning: `--localstorage-file` was provided without a valid path/);
5050
});
5151

5252
test('localStorage is not persisted if it is unused', async () => {

0 commit comments

Comments
 (0)