Skip to content

Commit

Permalink
Add error for missing CAT binaries.
Browse files Browse the repository at this point in the history
  • Loading branch information
robdahn committed Feb 21, 2024
1 parent 7289c65 commit ad9c00d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cat_system.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@
CATDir = [CATDir '.glnx86'];
end

% test if the file is existing
cmdparts = strsplit(cmd);
if isempty( cat_vol_findfiles(CATDir,cmdparts{1}) )
error('cat_system:missCmd','Cannot find "%s"',fullfile(CATDir,cmdparts{1}))
end

if ispc
olddir = pwd;
cd(CATDir);
Expand Down

0 comments on commit ad9c00d

Please sign in to comment.