psychtoolbox-3 (3.0.9+svn2579.dfsg1-1) deb_fail_if_mex_doesnotexists_while_stripping

Summary

 PsychSourceGL/Source/striplibsfrommexfile.m |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

    
download this patch

Patch contents

diff --git a/PsychSourceGL/Source/striplibsfrommexfile.m b/PsychSourceGL/Source/striplibsfrommexfile.m
index ba08d66..674522d 100644
--- a/PsychSourceGL/Source/striplibsfrommexfile.m
+++ b/PsychSourceGL/Source/striplibsfrommexfile.m
@@ -52,7 +52,8 @@ if exist(filename, 'file')
 
     fprintf('MEX file %s stripped from superfluous libraries.\n', filename);
 else
-    fprintf('WARNING! MEX file %s does not exist! Can''t strip it!\n', filename);
+    fprintf('ERROR! MEX file %s does not exist! Can''t strip it!\n', filename);
+    exit(1);
 end
 
 return