Skip to content

Commit a5db1cd

Browse files
Jake GoldsboroughSebastian McKenzie
Jake Goldsborough
authored and
Sebastian McKenzie
committed
making link command warn instead of throw an error if (#1793)
link is already registered
1 parent 3342c47 commit a5db1cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/commands/link.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function run(
5353

5454
const linkLoc = path.join(config.linkFolder, name);
5555
if (await fs.exists(linkLoc)) {
56-
throw new MessageError(reporter.lang('linkCollision', name));
56+
reporter.warn(reporter.lang('linkCollision', name));
5757
} else {
5858
await fs.mkdirp(path.dirname(linkLoc));
5959
await fs.symlink(config.cwd, linkLoc);

0 commit comments

Comments
 (0)