Skip to content

Commit 6011d7d

Browse files
committed
zstd: improve error messages
1 parent fc4d0c4 commit 6011d7d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

+stdlib/+fileio/extract_zstd.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ function extract_zstd(archive, out_dir)
1919
if ret ~= 0
2020
if ismac
2121
msg = "brew install zstd";
22+
elseif isunix
23+
msg = "apt install zstd";
24+
elseif ispc
25+
msg = "https://github.com/facebook/zstd/releases and look for zstd-*-win64.zip";
2226
else
23-
msg = "cmake -P cmake/build_zstd.cmake";
27+
msg = "https://github.com/facebook/zstd/releases";
2428
end
25-
error("need to have Zstd installed: \n install zstd by: \n %s", msg)
29+
error("stdlib:fileio:extract_zstd:EnvironmentError", "need to have Zstd installed: \n install zstd: \n %s", msg)
2630
end
2731

2832
tar_arc = tempname;

0 commit comments

Comments
 (0)