Skip to content

Commit 595adce

Browse files
committed
create_symlink: warn on fail
1 parent f374b73 commit 595adce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

+stdlib/create_symlink.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
link (1,1) string
1616
end
1717

18-
ok = false;
19-
20-
if stdlib.exists(link) || ~stdlib.exists(target) || stdlib.is_url(link), return, end
2118

2219
try
2320
createSymbolicLink(link, target);
@@ -41,6 +38,9 @@
4138
if ~ok
4239
warning("create_symlink: %s", msg)
4340
end
41+
else
42+
warning(e.identifier, "%s", e.message)
43+
ok = false;
4444
end
4545
end
4646

0 commit comments

Comments
 (0)